aboutsummaryrefslogtreecommitdiffstats
path: root/tests/config/db_text_test.php
diff options
context:
space:
mode:
authorYuriy Rusko <github@rusko.net>2014-05-27 21:55:40 +0200
committerYuriy Rusko <github@rusko.net>2014-05-27 21:55:40 +0200
commit1d61bcedfd1882f84d102c523a354a8c4ae69336 (patch)
treecbc3aead2546002d82fa0503eaab7f1520c515b8 /tests/config/db_text_test.php
parent27f787e5e4e118b77a3e16879d6c684bdaafc303 (diff)
parent0acaa7722956635b8f17e19cddc6f02a602b7352 (diff)
downloadforums-1d61bcedfd1882f84d102c523a354a8c4ae69336.tar
forums-1d61bcedfd1882f84d102c523a354a8c4ae69336.tar.gz
forums-1d61bcedfd1882f84d102c523a354a8c4ae69336.tar.bz2
forums-1d61bcedfd1882f84d102c523a354a8c4ae69336.tar.xz
forums-1d61bcedfd1882f84d102c523a354a8c4ae69336.zip
Merge remote-tracking branch 'upstream/develop-ascraeus' into ticket/12594
Conflicts: phpBB/docs/hook_system.html
Diffstat (limited to 'tests/config/db_text_test.php')
-rw-r--r--tests/config/db_text_test.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/tests/config/db_text_test.php b/tests/config/db_text_test.php
index b24c2fb17f..a91abf990f 100644
--- a/tests/config/db_text_test.php
+++ b/tests/config/db_text_test.php
@@ -13,8 +13,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()
{
@@ -52,6 +52,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);
@@ -93,6 +99,8 @@ class phpbb_config_db_text_test extends phpbb_database_test_case
'baby' => 'phpBB',
// Entry update
'bar' => '64',
+ // Entry update - same value
+ 'foo' => '23',
);
$this->config_text->set_array($set_array_param);