mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-11 03:04:09 +02:00
[ticket/16549] Move from assert[Not]Contains to assertString[Not]ContainsString
PHPBB3-16549
This commit is contained in:
@@ -44,19 +44,19 @@ class phpbb_console_command_cron_list_test extends phpbb_test_case
|
||||
public function test_no_task()
|
||||
{
|
||||
$this->initiate_test(0, 0);
|
||||
$this->assertContains('CRON_NO_TASKS', $this->command_tester->getDisplay());
|
||||
$this->assertStringContainsString('CRON_NO_TASKS', $this->command_tester->getDisplay());
|
||||
}
|
||||
|
||||
public function test_only_ready()
|
||||
{
|
||||
$this->initiate_test(2, 0);
|
||||
$this->assertContains('TASKS_READY command1 command2', preg_replace('/[\s*=]+/', ' ', trim($this->command_tester->getDisplay())));
|
||||
$this->assertStringContainsString('TASKS_READY command1 command2', preg_replace('/[\s*=]+/', ' ', trim($this->command_tester->getDisplay())));
|
||||
}
|
||||
|
||||
public function test_only_not_ready()
|
||||
{
|
||||
$this->initiate_test(0, 2);
|
||||
$this->assertContains('TASKS_NOT_READY command1 command2', preg_replace('/[\s*=]+/', ' ', trim($this->command_tester->getDisplay())));
|
||||
$this->assertStringContainsString('TASKS_NOT_READY command1 command2', preg_replace('/[\s*=]+/', ' ', trim($this->command_tester->getDisplay())));
|
||||
}
|
||||
|
||||
public function test_both_ready()
|
||||
|
Reference in New Issue
Block a user