mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-13 04:04:12 +02:00
[ticket/12602] Add files to print the cron list and test files.
PHPBB3-12602
This commit is contained in:
13
tests/console/cron/tasks/simple_not_ready.php
Normal file
13
tests/console/cron/tasks/simple_not_ready.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
class phpbb_cron_task_simple_not_ready extends \phpbb\cron\task\base
|
||||
{
|
||||
public function run()
|
||||
{
|
||||
}
|
||||
|
||||
public function should_run()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
18
tests/console/cron/tasks/simple_not_runnable.php
Normal file
18
tests/console/cron/tasks/simple_not_runnable.php
Normal file
@@ -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;
|
||||
}
|
||||
}
|
13
tests/console/cron/tasks/simple_ready.php
Normal file
13
tests/console/cron/tasks/simple_ready.php
Normal file
@@ -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()
|
||||
{
|
||||
}
|
||||
}
|
18
tests/console/cron/tasks/simple_should_not_run.php
Normal file
18
tests/console/cron/tasks/simple_should_not_run.php
Normal file
@@ -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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user