diff options
author | Erik Frèrejean <erikfrerejean@phpbb.com> | 2011-01-24 15:22:46 +0100 |
---|---|---|
committer | Erik Frèrejean <erikfrerejean@phpbb.com> | 2011-04-18 12:28:47 +0200 |
commit | 7b1638c37f9de64a0f6f7c712a063c7ef0d6d4aa (patch) | |
tree | d23d399010899db46942df59aab14fb9303a9feb | |
parent | 2f67ade05a426d41c95c146a86251d388c718b61 (diff) | |
download | forums-7b1638c37f9de64a0f6f7c712a063c7ef0d6d4aa.tar forums-7b1638c37f9de64a0f6f7c712a063c7ef0d6d4aa.tar.gz forums-7b1638c37f9de64a0f6f7c712a063c7ef0d6d4aa.tar.bz2 forums-7b1638c37f9de64a0f6f7c712a063c7ef0d6d4aa.tar.xz forums-7b1638c37f9de64a0f6f7c712a063c7ef0d6d4aa.zip |
[ticket/10006] Tweak the tests a bit
PHPBB3-10006
-rw-r--r-- | tests/config/config_test.php | 1 | ||||
-rw-r--r-- | tests/config/db_test.php | 6 |
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'); } } |