aboutsummaryrefslogtreecommitdiffstats
path: root/tests/config/db_text_test.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-05-23 12:58:17 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-05-26 21:43:36 +0200
commitce5258d801859fe38bdcd61531e3a4c14a7b3f03 (patch)
tree5f0abaf872d4ba454e5644fb6e479b605296fb86 /tests/config/db_text_test.php
parent502cbad5a7f8896311a616553cff9d83ccc87497 (diff)
downloadforums-ce5258d801859fe38bdcd61531e3a4c14a7b3f03.tar
forums-ce5258d801859fe38bdcd61531e3a4c14a7b3f03.tar.gz
forums-ce5258d801859fe38bdcd61531e3a4c14a7b3f03.tar.bz2
forums-ce5258d801859fe38bdcd61531e3a4c14a7b3f03.tar.xz
forums-ce5258d801859fe38bdcd61531e3a4c14a7b3f03.zip
[ticket/12570] Add test for updating a config with the same value
PHPBB3-12570
Diffstat (limited to 'tests/config/db_text_test.php')
-rw-r--r--tests/config/db_text_test.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/config/db_text_test.php b/tests/config/db_text_test.php
index 354c0efacf..ed5b6e7327 100644
--- a/tests/config/db_text_test.php
+++ b/tests/config/db_text_test.php
@@ -9,8 +9,8 @@
class phpbb_config_db_text_test extends phpbb_database_test_case
{
- private $db;
- private $config_text;
+ /** @var \phpbb\config\db_text */
+ protected $config_text;
public function getDataSet()
{
@@ -48,6 +48,12 @@ class phpbb_config_db_text_test extends phpbb_database_test_case
$this->assertSame('24', $this->config_text->get('foo'));
}
+ public function test_set_same_value_get()
+ {
+ $this->config_text->set('foo', '23');
+ $this->assertSame('23', $this->config_text->get('foo'));
+ }
+
public function test_set_get_long_string()
{
$expected = str_repeat('ABC', 10000);