aboutsummaryrefslogtreecommitdiffstats
path: root/tests/config/db_test.php
diff options
context:
space:
mode:
authorErik Frèrejean <erikfrerejean@phpbb.com>2011-01-24 16:33:42 +0100
committerErik Frèrejean <erikfrerejean@phpbb.com>2011-04-18 12:28:47 +0200
commit503b87da481d5a77091b519144e8b862b4569f80 (patch)
treee97bf277113286180fa4b6551a408689c0a83ac6 /tests/config/db_test.php
parent7b1638c37f9de64a0f6f7c712a063c7ef0d6d4aa (diff)
downloadforums-503b87da481d5a77091b519144e8b862b4569f80.tar
forums-503b87da481d5a77091b519144e8b862b4569f80.tar.gz
forums-503b87da481d5a77091b519144e8b862b4569f80.tar.bz2
forums-503b87da481d5a77091b519144e8b862b4569f80.tar.xz
forums-503b87da481d5a77091b519144e8b862b4569f80.zip
[ticket/10006] More testing
Change the DB test to test agains new cache/config mock objects PHPBB3-10006
Diffstat (limited to 'tests/config/db_test.php')
-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']));
}
}