mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00: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:
parent
1db91af000
commit
4b7cdd4264
1 changed files with 1 additions and 1 deletions
2
tests/cache/cache_test.php
vendored
2
tests/cache/cache_test.php
vendored
|
@ -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'";
|
||||
|
|
Loading…
Add table
Reference in a new issue