aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/config/config_test.php1
-rw-r--r--tests/config/db_test.php6
2 files changed, 5 insertions, 2 deletions
diff --git a/tests/config/config_test.php b/tests/config/config_test.php
index e4444eccda..9c91d9eb87 100644
--- a/tests/config/config_test.php
+++ b/tests/config/config_test.php
@@ -114,7 +114,6 @@ class phpbb_config_test extends phpbb_test_case
{
$config = new phpbb_config(array('foo' => 'bar'));
- $this->assertTrue(isset($config['foo']));
$config->delete('foo');
$this->assertFalse(isset($config['foo']));
}
diff --git a/tests/config/db_test.php b/tests/config/db_test.php
index d37b31dbbd..aa3d40999a 100644
--- a/tests/config/db_test.php
+++ b/tests/config/db_test.php
@@ -129,7 +129,11 @@ class phpbb_config_db_test extends phpbb_database_test_case
public function test_delete()
{
$this->assertTrue(isset($this->config['foo']));
- $this->config->delete('foo', false);
+ $this->config->delete('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');
}
}