mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-10 18:54:08 +02:00
[ticket/16549] Move from assert[Not]Contains to assertString[Not]ContainsString
PHPBB3-16549
This commit is contained in:
@@ -159,7 +159,7 @@ class phpbb_console_command_config_test extends phpbb_test_case
|
||||
'--no-newline' => false,
|
||||
));
|
||||
|
||||
$this->assertContains('CLI_CONFIG_NOT_EXISTS', $command_tester->getDisplay());
|
||||
$this->assertStringContainsString('CLI_CONFIG_NOT_EXISTS', $command_tester->getDisplay());
|
||||
}
|
||||
|
||||
public function test_increment_dynamic()
|
||||
@@ -175,7 +175,7 @@ class phpbb_console_command_config_test extends phpbb_test_case
|
||||
'--dynamic' => true,
|
||||
));
|
||||
|
||||
$this->assertContains('CLI_CONFIG_INCREMENT_SUCCESS', $command_tester->getDisplay());
|
||||
$this->assertStringContainsString('CLI_CONFIG_INCREMENT_SUCCESS', $command_tester->getDisplay());
|
||||
$this->assertSame(2, $this->config['test_key']);
|
||||
}
|
||||
|
||||
@@ -192,7 +192,7 @@ class phpbb_console_command_config_test extends phpbb_test_case
|
||||
'--dynamic' => false,
|
||||
));
|
||||
|
||||
$this->assertContains('CLI_CONFIG_INCREMENT_SUCCESS', $command_tester->getDisplay());
|
||||
$this->assertStringContainsString('CLI_CONFIG_INCREMENT_SUCCESS', $command_tester->getDisplay());
|
||||
$this->assertSame(2, $this->config['test_key']);
|
||||
}
|
||||
|
||||
@@ -208,7 +208,7 @@ class phpbb_console_command_config_test extends phpbb_test_case
|
||||
'--dynamic' => true,
|
||||
));
|
||||
|
||||
$this->assertContains('CLI_CONFIG_INCREMENT_SUCCESS', $command_tester->getDisplay());
|
||||
$this->assertStringContainsString('CLI_CONFIG_INCREMENT_SUCCESS', $command_tester->getDisplay());
|
||||
$this->assertSame(2, $this->config['test_key']);
|
||||
}
|
||||
|
||||
@@ -223,7 +223,7 @@ class phpbb_console_command_config_test extends phpbb_test_case
|
||||
'key' => 'test_key',
|
||||
));
|
||||
|
||||
$this->assertContains('CLI_CONFIG_DELETE_SUCCESS', $command_tester->getDisplay());
|
||||
$this->assertStringContainsString('CLI_CONFIG_DELETE_SUCCESS', $command_tester->getDisplay());
|
||||
$this->assertEmpty($this->config);
|
||||
}
|
||||
|
||||
@@ -237,7 +237,7 @@ class phpbb_console_command_config_test extends phpbb_test_case
|
||||
'key' => 'wrong_key',
|
||||
));
|
||||
|
||||
$this->assertContains('CLI_CONFIG_NOT_EXISTS', $command_tester->getDisplay());
|
||||
$this->assertStringContainsString('CLI_CONFIG_NOT_EXISTS', $command_tester->getDisplay());
|
||||
$this->assertEmpty($this->config);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user