diff options
Diffstat (limited to 'tests/cron/tasks')
| -rw-r--r-- | tests/cron/tasks/simple_not_runnable.php | 18 | ||||
| -rw-r--r-- | tests/cron/tasks/simple_ready.php | 13 | ||||
| -rw-r--r-- | tests/cron/tasks/simple_should_not_run.php | 18 | 
3 files changed, 49 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..56d484eacd --- /dev/null +++ b/tests/cron/tasks/simple_not_runnable.php @@ -0,0 +1,18 @@ +<?php + +class phpbb_cron_task_core_simple_not_runnable extends phpbb_cron_task_base +{ +	public function get_name() +	{ +		return get_class($this); +	} + +	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..8aa0507406 --- /dev/null +++ b/tests/cron/tasks/simple_ready.php @@ -0,0 +1,13 @@ +<?php + +class phpbb_cron_task_core_simple_ready extends phpbb_cron_task_base +{ +	public function get_name() +	{ +		return get_class($this); +	} + +	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..58f6df2616 --- /dev/null +++ b/tests/cron/tasks/simple_should_not_run.php @@ -0,0 +1,18 @@ +<?php + +class phpbb_cron_task_core_simple_should_not_run extends phpbb_cron_task_base +{ +	public function get_name() +	{ +		return get_class($this); +	} + +	public function run() +	{ +	} + +	public function should_run() +	{ +		return false; +	} +} | 
