From aceeb304637198106041931041071cfd6f8e8319 Mon Sep 17 00:00:00 2001 From: rxu Date: Mon, 13 Jul 2020 20:05:56 +0700 Subject: [PATCH] [ticket/16549] Fix wrong exception message function names PHPBB3-16549 --- tests/console/cron/run_test.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/console/cron/run_test.php b/tests/console/cron/run_test.php index f54d0c1aca..ac202af5b2 100644 --- a/tests/console/cron/run_test.php +++ b/tests/console/cron/run_test.php @@ -108,7 +108,7 @@ class phpbb_console_command_cron_run_test extends phpbb_database_test_case public function test_error_lock() { $this->expectException(\phpbb\exception\runtime_exception::class); - $this->expectException('CRON_LOCK_ERROR'); + $this->expectExceptionMessage('CRON_LOCK_ERROR'); $this->lock->acquire(); $command_tester = $this->get_command_tester(); @@ -227,7 +227,7 @@ class phpbb_console_command_cron_run_test extends phpbb_database_test_case public function test_arg_invalid() { $this->expectException(\phpbb\exception\runtime_exception::class); - $this->expectException('CRON_NO_SUCH_TASK'); + $this->expectExceptionMessage('CRON_NO_SUCH_TASK'); $command_tester = $this->get_command_tester(); $exit_status = $command_tester->execute(array('command' => $this->command_name, 'name' => 'foo'));