mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 20:38:52 +00:00
[ticket/10006] More testing
Change the DB test to test agains new cache/config mock objects PHPBB3-10006
This commit is contained in:
parent
7b1638c37f
commit
503b87da48
1 changed files with 5 additions and 2 deletions
|
@ -130,10 +130,13 @@ class phpbb_config_db_test extends phpbb_database_test_case
|
||||||
{
|
{
|
||||||
$this->assertTrue(isset($this->config['foo']));
|
$this->assertTrue(isset($this->config['foo']));
|
||||||
$this->config->delete('foo');
|
$this->config->delete('foo');
|
||||||
|
$this->cache->checkVarUnset($this, 'foo');
|
||||||
$this->assertFalse(isset($this->config['foo']));
|
$this->assertFalse(isset($this->config['foo']));
|
||||||
|
|
||||||
// re-read config and populate cache
|
// re-read config and populate cache
|
||||||
$config2 = new phpbb_config_db($this->db, $this->cache, 'phpbb_config');
|
$cache2 = new phpbb_mock_cache;
|
||||||
$this->cache->checkVarUnset($this, 'foo');
|
$config2 = new phpbb_config_db($this->db, $cache2, 'phpbb_config');
|
||||||
|
$cache2->checkVarUnset($this, 'foo');
|
||||||
|
$this->assertFalse(isset($config2['foo']));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue