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:
parent
1db91af000
commit
4b7cdd4264
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…
x
Reference in New Issue
Block a user