mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 13:28:55 +00:00
[ticket/12570] Add test for updating a config with the same value
PHPBB3-12570
This commit is contained in:
parent
502cbad5a7
commit
ce5258d801
1 changed files with 8 additions and 2 deletions
|
@ -9,8 +9,8 @@
|
||||||
|
|
||||||
class phpbb_config_db_text_test extends phpbb_database_test_case
|
class phpbb_config_db_text_test extends phpbb_database_test_case
|
||||||
{
|
{
|
||||||
private $db;
|
/** @var \phpbb\config\db_text */
|
||||||
private $config_text;
|
protected $config_text;
|
||||||
|
|
||||||
public function getDataSet()
|
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'));
|
$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()
|
public function test_set_get_long_string()
|
||||||
{
|
{
|
||||||
$expected = str_repeat('ABC', 10000);
|
$expected = str_repeat('ABC', 10000);
|
||||||
|
|
Loading…
Add table
Reference in a new issue