aboutsummaryrefslogtreecommitdiffstats
path: root/tests/console
diff options
context:
space:
mode:
authorTristan Darricau <tristan.darricau@sensiolabs.com>2015-08-26 12:49:18 +0200
committerTristan Darricau <tristan.darricau@sensiolabs.com>2015-08-26 12:49:18 +0200
commit2e81771c6e18009a16b11b515e869a6a9afb0d2e (patch)
treecb081bf5475035950639e35850317a1bcd0499b7 /tests/console
parent2a07de70c2decb9669990286391cef1d427244bc (diff)
downloadforums-2e81771c6e18009a16b11b515e869a6a9afb0d2e.tar
forums-2e81771c6e18009a16b11b515e869a6a9afb0d2e.tar.gz
forums-2e81771c6e18009a16b11b515e869a6a9afb0d2e.tar.bz2
forums-2e81771c6e18009a16b11b515e869a6a9afb0d2e.tar.xz
forums-2e81771c6e18009a16b11b515e869a6a9afb0d2e.zip
[ticket/14124] Update cron tests
PHPBB3-14124
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();