aboutsummaryrefslogtreecommitdiffstats
path: root/tests/cron/includes
diff options
context:
space:
mode:
authorIgor Wiedler <igor@wiedler.ch>2012-04-09 15:05:28 +0200
committerIgor Wiedler <igor@wiedler.ch>2012-04-09 15:05:28 +0200
commit3ebe89cb7eff57c3ffdbe0b7dcd9cdc35b48d26b (patch)
tree9a5c38eb1f18d2d3219b3fa0a4cb4bd9fc854dd4 /tests/cron/includes
parent0a5348a1376fafb487884086a70069bea8c5640b (diff)
downloadforums-3ebe89cb7eff57c3ffdbe0b7dcd9cdc35b48d26b.tar
forums-3ebe89cb7eff57c3ffdbe0b7dcd9cdc35b48d26b.tar.gz
forums-3ebe89cb7eff57c3ffdbe0b7dcd9cdc35b48d26b.tar.bz2
forums-3ebe89cb7eff57c3ffdbe0b7dcd9cdc35b48d26b.tar.xz
forums-3ebe89cb7eff57c3ffdbe0b7dcd9cdc35b48d26b.zip
[feature/dic] Fix test suite for dic-powered cron
PHPBB3-10739
Diffstat (limited to 'tests/cron/includes')
-rw-r--r--tests/cron/includes/cron/task/core/dummy_task.php5
-rw-r--r--tests/cron/includes/cron/task/core/second_dummy_task.php5
2 files changed, 10 insertions, 0 deletions
diff --git a/tests/cron/includes/cron/task/core/dummy_task.php b/tests/cron/includes/cron/task/core/dummy_task.php
index 6e2e2db636..ce3e91a9ba 100644
--- a/tests/cron/includes/cron/task/core/dummy_task.php
+++ b/tests/cron/includes/cron/task/core/dummy_task.php
@@ -11,6 +11,11 @@ class phpbb_cron_task_core_dummy_task extends phpbb_cron_task_base
{
public static $was_run = 0;
+ public function get_name()
+ {
+ return get_class($this);
+ }
+
public function run()
{
self::$was_run++;
diff --git a/tests/cron/includes/cron/task/core/second_dummy_task.php b/tests/cron/includes/cron/task/core/second_dummy_task.php
index 8cd0bddfc0..76a55588f9 100644
--- a/tests/cron/includes/cron/task/core/second_dummy_task.php
+++ b/tests/cron/includes/cron/task/core/second_dummy_task.php
@@ -11,6 +11,11 @@ class phpbb_cron_task_core_second_dummy_task extends phpbb_cron_task_base
{
public static $was_run = 0;
+ public function get_name()
+ {
+ return get_class($this);
+ }
+
public function run()
{
self::$was_run++;