mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
[ticket/16549] Fix tests
PHPBB3-16549
This commit is contained in:
2
tests/cache/cache_memory.php
vendored
2
tests/cache/cache_memory.php
vendored
@@ -31,7 +31,7 @@ class phpbb_cache_memory extends \phpbb\cache\driver\memory
|
||||
*/
|
||||
function _read($var)
|
||||
{
|
||||
return $this->data[$var];
|
||||
return $this->data[$var] ?? false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
2
tests/cache/cache_memory_test.php
vendored
2
tests/cache/cache_memory_test.php
vendored
@@ -123,7 +123,7 @@ class phpbb_cache_memory_test extends phpbb_database_test_case
|
||||
|
||||
foreach ($sql_queries as $query)
|
||||
{
|
||||
$this->assertNotEquals(false, $this->cache->sql_load($query[0]));
|
||||
$this->assertFalse($this->cache->sql_load($query[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user