mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 13:28:55 +00:00
[ticket/16549] Fix wrong exception message function names
PHPBB3-16549
This commit is contained in:
parent
6785db282e
commit
aceeb30463
1 changed files with 2 additions and 2 deletions
|
@ -108,7 +108,7 @@ class phpbb_console_command_cron_run_test extends phpbb_database_test_case
|
||||||
public function test_error_lock()
|
public function test_error_lock()
|
||||||
{
|
{
|
||||||
$this->expectException(\phpbb\exception\runtime_exception::class);
|
$this->expectException(\phpbb\exception\runtime_exception::class);
|
||||||
$this->expectException('CRON_LOCK_ERROR');
|
$this->expectExceptionMessage('CRON_LOCK_ERROR');
|
||||||
|
|
||||||
$this->lock->acquire();
|
$this->lock->acquire();
|
||||||
$command_tester = $this->get_command_tester();
|
$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()
|
public function test_arg_invalid()
|
||||||
{
|
{
|
||||||
$this->expectException(\phpbb\exception\runtime_exception::class);
|
$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();
|
$command_tester = $this->get_command_tester();
|
||||||
$exit_status = $command_tester->execute(array('command' => $this->command_name, 'name' => 'foo'));
|
$exit_status = $command_tester->execute(array('command' => $this->command_name, 'name' => 'foo'));
|
||||||
|
|
Loading…
Add table
Reference in a new issue