mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-24 01:03:05 +02:00
[feature/system-cron] More tests for cron manager.
PHPBB3-9596
This commit is contained in:
13
tests/cron/task2/testmod/simple_not_runnable.php
Normal file
13
tests/cron/task2/testmod/simple_not_runnable.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
class phpbb_cron_task_testmod_simple_not_runnable extends phpbb_cron_task_base
|
||||
{
|
||||
public function run()
|
||||
{
|
||||
}
|
||||
|
||||
public function is_runnable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
8
tests/cron/task2/testmod/simple_ready.php
Normal file
8
tests/cron/task2/testmod/simple_ready.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
class phpbb_cron_task_testmod_simple_ready extends phpbb_cron_task_base
|
||||
{
|
||||
public function run()
|
||||
{
|
||||
}
|
||||
}
|
13
tests/cron/task2/testmod/simple_should_not_run.php
Normal file
13
tests/cron/task2/testmod/simple_should_not_run.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
class phpbb_cron_task_testmod_simple_should_not_run extends phpbb_cron_task_base
|
||||
{
|
||||
public function run()
|
||||
{
|
||||
}
|
||||
|
||||
public function should_run()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user