diff options
author | Erik Frèrejean <erikfrerejean@phpbb.com> | 2011-01-24 15:13:15 +0100 |
---|---|---|
committer | Erik Frèrejean <erikfrerejean@phpbb.com> | 2011-04-18 12:28:47 +0200 |
commit | 2f67ade05a426d41c95c146a86251d388c718b61 (patch) | |
tree | fc7d66ab15fe13018211169ded8e0c4c41afa13e /tests/config/db_test.php | |
parent | 6dd0e40d02272fca63b2bc5b3fa727e7a70c5c86 (diff) | |
download | forums-2f67ade05a426d41c95c146a86251d388c718b61.tar forums-2f67ade05a426d41c95c146a86251d388c718b61.tar.gz forums-2f67ade05a426d41c95c146a86251d388c718b61.tar.bz2 forums-2f67ade05a426d41c95c146a86251d388c718b61.tar.xz forums-2f67ade05a426d41c95c146a86251d388c718b61.zip |
[ticket/10006] Add phpbb_config::delete
Add the missing `phpbb_config::delete` method to the config class
PHPBB3-10006
Diffstat (limited to 'tests/config/db_test.php')
-rw-r--r-- | tests/config/db_test.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/config/db_test.php b/tests/config/db_test.php index e0d5252f19..d37b31dbbd 100644 --- a/tests/config/db_test.php +++ b/tests/config/db_test.php @@ -125,4 +125,11 @@ class phpbb_config_db_test extends phpbb_database_test_case $this->config->increment('foobar', 3); $this->assertEquals(3, $this->config['foobar']);; } + + public function test_delete() + { + $this->assertTrue(isset($this->config['foo'])); + $this->config->delete('foo', false); + $this->assertFalse(isset($this->config['foo'])); + } } |