diff options
| author | Erik Frèrejean <erikfrerejean@phpbb.com> | 2011-01-24 16:33:42 +0100 |
|---|---|---|
| committer | Erik Frèrejean <erikfrerejean@phpbb.com> | 2011-04-18 12:28:47 +0200 |
| commit | 503b87da481d5a77091b519144e8b862b4569f80 (patch) | |
| tree | e97bf277113286180fa4b6551a408689c0a83ac6 | |
| parent | 7b1638c37f9de64a0f6f7c712a063c7ef0d6d4aa (diff) | |
| download | forums-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
| -rw-r--r-- | tests/config/db_test.php | 7 |
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'])); } } |
