1
0
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:
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'));
$this->assertTrue(isset($config['foo']));
$config->delete('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()
{
$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');
}
}