mirror of
https://github.com/phpbb/phpbb.git
synced 2025-04-19 23:32:02 +02:00
[ticket/10006] Tweak the tests a bit
PHPBB3-10006
This commit is contained in:
parent
2f67ade05a
commit
7b1638c37f
@ -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']));
|
||||
}
|
||||
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user