aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2016-12-11 20:25:09 +0100
committerTristan Darricau <github@nicofuma.fr>2016-12-11 20:25:09 +0100
commit8c9d6add2ea20a2845eb1137be1607dfd00378c6 (patch)
treee63713beca201aebcf77faa1e827f4be59364ba2 /tests
parent0cf85c047e848a75df236c4617b449498627dccc (diff)
parent6a5b99b12b1812202843613994480cc6caf93354 (diff)
downloadforums-8c9d6add2ea20a2845eb1137be1607dfd00378c6.tar
forums-8c9d6add2ea20a2845eb1137be1607dfd00378c6.tar.gz
forums-8c9d6add2ea20a2845eb1137be1607dfd00378c6.tar.bz2
forums-8c9d6add2ea20a2845eb1137be1607dfd00378c6.tar.xz
forums-8c9d6add2ea20a2845eb1137be1607dfd00378c6.zip
Merge pull request #4564 from VSEphpbb/ticket/14895
[ticket/14895] CLI should use SymfonyStyle * VSEphpbb/ticket/14895: [ticket/14895] Fix broken tests [ticket/14895] Fix issues in CLI classes [ticket/14895] Use SymfonyStyle in all CLI [ticket/14895] Use SymfonyIO styling [ticket/14895] CLI reparser:list should display proper list
Diffstat (limited to 'tests')
-rw-r--r--tests/console/cron/cron_list_test.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/console/cron/cron_list_test.php b/tests/console/cron/cron_list_test.php
index 3bbe2078ba..fdc9a05cb2 100644
--- a/tests/console/cron/cron_list_test.php
+++ b/tests/console/cron/cron_list_test.php
@@ -50,19 +50,19 @@ class phpbb_console_command_cron_list_test extends phpbb_test_case
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->assertContains('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->assertContains('TASKS_NOT_READY command1 command2', preg_replace('/[\s*=]+/', ' ', trim($this->command_tester->getDisplay())));
}
public function test_both_ready()
{
$this->initiate_test(2, 2);
- $this->assertSame('TASKS_READY command1 command2 TASKS_NOT_READY command3 command4', preg_replace('/\s+/', ' ', trim($this->command_tester->getDisplay())));
+ $this->assertSame('TASKS_READY command1 command2 TASKS_NOT_READY command3 command4', preg_replace('/[\s*=]+/', ' ', trim($this->command_tester->getDisplay())));
}
public function get_cron_manager(array $tasks)