diff options
author | Nils Adermann <naderman@naderman.de> | 2011-08-21 02:57:01 -0400 |
---|---|---|
committer | Nils Adermann <naderman@naderman.de> | 2011-09-29 15:42:46 +0200 |
commit | 5d5030a48be3d65df85d78e26690085c0889c6e3 (patch) | |
tree | a4b0f3dd7f551a5e37503698ee2ac0e52c177300 /tests/cron/tasks | |
parent | 96209e022477d97b581b79cabace4caddd19501b (diff) | |
download | forums-5d5030a48be3d65df85d78e26690085c0889c6e3.tar forums-5d5030a48be3d65df85d78e26690085c0889c6e3.tar.gz forums-5d5030a48be3d65df85d78e26690085c0889c6e3.tar.bz2 forums-5d5030a48be3d65df85d78e26690085c0889c6e3.tar.xz forums-5d5030a48be3d65df85d78e26690085c0889c6e3.zip |
[feature/extension-manager] Remove cron's dependency on the extension manager.
Instead a separate cron provider supplies the manager with tasks from the
extension finder.
PHPBB3-10323
Diffstat (limited to 'tests/cron/tasks')
-rw-r--r-- | tests/cron/tasks/simple_not_runnable.php | 13 | ||||
-rw-r--r-- | tests/cron/tasks/simple_ready.php | 8 | ||||
-rw-r--r-- | tests/cron/tasks/simple_should_not_run.php | 13 |
3 files changed, 34 insertions, 0 deletions
diff --git a/tests/cron/tasks/simple_not_runnable.php b/tests/cron/tasks/simple_not_runnable.php new file mode 100644 index 0000000000..837f28f1c0 --- /dev/null +++ b/tests/cron/tasks/simple_not_runnable.php @@ -0,0 +1,13 @@ +<?php + +class phpbb_cron_task_core_simple_not_runnable extends phpbb_cron_task_base +{ + public function run() + { + } + + public function is_runnable() + { + return false; + } +} diff --git a/tests/cron/tasks/simple_ready.php b/tests/cron/tasks/simple_ready.php new file mode 100644 index 0000000000..de5f10e491 --- /dev/null +++ b/tests/cron/tasks/simple_ready.php @@ -0,0 +1,8 @@ +<?php + +class phpbb_cron_task_core_simple_ready extends phpbb_cron_task_base +{ + public function run() + { + } +} diff --git a/tests/cron/tasks/simple_should_not_run.php b/tests/cron/tasks/simple_should_not_run.php new file mode 100644 index 0000000000..c2a41616f6 --- /dev/null +++ b/tests/cron/tasks/simple_should_not_run.php @@ -0,0 +1,13 @@ +<?php + +class phpbb_cron_task_core_simple_should_not_run extends phpbb_cron_task_base +{ + public function run() + { + } + + public function should_run() + { + return false; + } +} |