1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-04-20 15:53:14 +02:00

[ticket/10875] Fix cache test

Check for the correct filename based on the way the cache driver creates it

PHPBB3-10875
This commit is contained in:
Nathan Guse 2012-08-06 18:43:46 -05:00
parent 1db91af000
commit 4b7cdd4264

View File

@ -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'";