[ticket/10006] Tweak the tests a bit

PHPBB3-10006
This commit is contained in:
Erik Frèrejean 2011-01-24 15:22:46 +01:00
parent 2f67ade05a
commit 7b1638c37f
2 changed files with 5 additions and 2 deletions

View file

@ -114,7 +114,6 @@ class phpbb_config_test extends phpbb_test_case
{ {
$config = new phpbb_config(array('foo' => 'bar')); $config = new phpbb_config(array('foo' => 'bar'));
$this->assertTrue(isset($config['foo']));
$config->delete('foo'); $config->delete('foo');
$this->assertFalse(isset($config['foo'])); $this->assertFalse(isset($config['foo']));
} }

View file

@ -129,7 +129,11 @@ class phpbb_config_db_test extends phpbb_database_test_case
public function test_delete() public function test_delete()
{ {
$this->assertTrue(isset($this->config['foo'])); $this->assertTrue(isset($this->config['foo']));
$this->config->delete('foo', false); $this->config->delete('foo');
$this->assertFalse(isset($this->config['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');
} }
} }