aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2012-08-06 18:43:46 -0500
committerNathan Guse <nathaniel.guse@gmail.com>2012-08-06 18:43:46 -0500
commit4b7cdd4264b2669aaf0a0f99db2a9b00b2b58c4e (patch)
tree6463b872e94fa4533941fb09df7dc4b2e1361941
parent1db91af0000a56b676bf593aab1852190d1d6a7b (diff)
downloadforums-4b7cdd4264b2669aaf0a0f99db2a9b00b2b58c4e.tar
forums-4b7cdd4264b2669aaf0a0f99db2a9b00b2b58c4e.tar.gz
forums-4b7cdd4264b2669aaf0a0f99db2a9b00b2b58c4e.tar.bz2
forums-4b7cdd4264b2669aaf0a0f99db2a9b00b2b58c4e.tar.xz
forums-4b7cdd4264b2669aaf0a0f99db2a9b00b2b58c4e.zip
[ticket/10875] Fix cache test
Check for the correct filename based on the way the cache driver creates it PHPBB3-10875
-rw-r--r--tests/cache/cache_test.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/cache/cache_test.php b/tests/cache/cache_test.php
index 336c009ebe..c5f5fac88c 100644
--- a/tests/cache/cache_test.php
+++ b/tests/cache/cache_test.php
@@ -90,7 +90,7 @@ class phpbb_cache_test extends phpbb_database_test_case
$result = $db->sql_query($sql, 300);
$first_result = $db->sql_fetchrow($result);
- $this->assertFileExists($this->cache_dir . 'sql_' . md5($sql) . '.php');
+ $this->assertFileExists($this->cache_dir . 'sql_' . md5(preg_replace('/[\n\r\s\t]+/', ' ', $sql)) . '.php');
$sql = "SELECT * FROM phpbb_config
WHERE config_name = 'foo'";