mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-15 14:16:28 +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:
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);
|
$result = $db->sql_query($sql, 300);
|
||||||
$first_result = $db->sql_fetchrow($result);
|
$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
|
$sql = "SELECT * FROM phpbb_config
|
||||||
WHERE config_name = 'foo'";
|
WHERE config_name = 'foo'";
|
||||||
|
Reference in New Issue
Block a user