aboutsummaryrefslogtreecommitdiffstats
path: root/tests/console
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2015-10-07 14:47:23 +0200
committerMarc Alexander <admin@m-a-styles.de>2015-10-07 14:47:23 +0200
commitda4d6dfa28bff4a869277fe1ca102ce46ead7ef4 (patch)
treef8c34183520c6f37745bef367c7b42277406f068 /tests/console
parentd7109fb130511c213859ede614a11e9fbccf0c75 (diff)
parentd13d66fc01688e0e9f49bae5cf368dc16220aa40 (diff)
downloadforums-da4d6dfa28bff4a869277fe1ca102ce46ead7ef4.tar
forums-da4d6dfa28bff4a869277fe1ca102ce46ead7ef4.tar.gz
forums-da4d6dfa28bff4a869277fe1ca102ce46ead7ef4.tar.bz2
forums-da4d6dfa28bff4a869277fe1ca102ce46ead7ef4.tar.xz
forums-da4d6dfa28bff4a869277fe1ca102ce46ead7ef4.zip
Merge pull request #3857 from Nicofuma/ticket/14124
[ticket/14124] Automatically translate exceptions in CLI
Diffstat (limited to 'tests/console')
-rw-r--r--tests/console/cron/run_test.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/console/cron/run_test.php b/tests/console/cron/run_test.php
index 51ea49b282..d6c7b21781 100644
--- a/tests/console/cron/run_test.php
+++ b/tests/console/cron/run_test.php
@@ -78,6 +78,10 @@ class phpbb_console_command_cron_run_test extends phpbb_database_test_case
$this->assertSame(false, $this->lock->owns_lock());
}
+ /**
+ * @expectedException \phpbb\exception\runtime_exception
+ * @expectedExceptionMessage CRON_LOCK_ERROR
+ */
public function test_error_lock()
{
$this->lock->acquire();
@@ -126,6 +130,10 @@ class phpbb_console_command_cron_run_test extends phpbb_database_test_case
$this->assertSame(false, $this->lock->owns_lock());
}
+ /**
+ * @expectedException \phpbb\exception\runtime_exception
+ * @expectedExceptionMessage CRON_NO_SUCH_TASK
+ */
public function test_arg_invalid()
{
$command_tester = $this->get_command_tester();