aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/config/db_test.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/config/db_test.php b/tests/config/db_test.php
index aa3d40999a..5bd5296e5a 100644
--- a/tests/config/db_test.php
+++ b/tests/config/db_test.php
@@ -130,10 +130,13 @@ class phpbb_config_db_test extends phpbb_database_test_case
{
$this->assertTrue(isset($this->config['foo']));
$this->config->delete('foo');
+ $this->cache->checkVarUnset($this, 'foo');
$this->assertFalse(isset($this->config['foo']));
// re-read config and populate cache
- $config2 = new phpbb_config_db($this->db, $this->cache, 'phpbb_config');
- $this->cache->checkVarUnset($this, 'foo');
+ $cache2 = new phpbb_mock_cache;
+ $config2 = new phpbb_config_db($this->db, $cache2, 'phpbb_config');
+ $cache2->checkVarUnset($this, 'foo');
+ $this->assertFalse(isset($config2['foo']));
}
}