ILIAS
release_8 Revision v8.19
|
Class CronJobScheduleTest. More...
Public Member Functions | |
jobProvider () | |
testSchedule (ilCronJob $job_instance, bool $is_manual_run, ?DateTimeImmutable $last_run_datetime, int $schedule_type, ?int $schedule_value, bool $should_be_due) | |
jobProvider More... | |
weeklyScheduleProvider () | |
testWeeklySchedules (ilCronJob $job_instance, callable $last_run_datetime_provider, bool $should_be_due) | |
weeklyScheduleProvider More... | |
Private Member Functions | |
getJob (bool $has_flexible_schedule, int $default_schedule_type, ?int $default_schedule_value, int $schedule_type, ?int $schedule_value) | |
Private Attributes | |
DateTimeImmutable | $now |
DateTimeImmutable | $this_quarter_start |
Class CronJobScheduleTest.
Definition at line 27 of file CronJobScheduleTest.php.
|
private |
Definition at line 33 of file CronJobScheduleTest.php.
References $now, ILIAS\GlobalScreen\Provider\__construct(), and ILIAS\Survey\Mode\getId().
Referenced by jobProvider(), and weeklyScheduleProvider().
CronJobScheduleTest::jobProvider | ( | ) |
Definition at line 107 of file CronJobScheduleTest.php.
References $now, getJob(), ILIAS\Repository\int(), ilCronJob\SCHEDULE_TYPE_DAILY, ilCronJob\SCHEDULE_TYPE_IN_DAYS, ilCronJob\SCHEDULE_TYPE_IN_HOURS, ilCronJob\SCHEDULE_TYPE_IN_MINUTES, ilCronJob\SCHEDULE_TYPE_MONTHLY, ilCronJob\SCHEDULE_TYPE_QUARTERLY, ilCronJob\SCHEDULE_TYPE_WEEKLY, and ilCronJob\SCHEDULE_TYPE_YEARLY.
CronJobScheduleTest::testSchedule | ( | ilCronJob | $job_instance, |
bool | $is_manual_run, | ||
?DateTimeImmutable | $last_run_datetime, | ||
int | $schedule_type, | ||
?int | $schedule_value, | ||
bool | $should_be_due | ||
) |
jobProvider
Definition at line 274 of file CronJobScheduleTest.php.
References ilCronJob\isDue().
CronJobScheduleTest::testWeeklySchedules | ( | ilCronJob | $job_instance, |
callable | $last_run_datetime_provider, | ||
bool | $should_be_due | ||
) |
weeklyScheduleProvider
callable() | DateTimeImmutable $last_run_datetime_provider |
Definition at line 356 of file CronJobScheduleTest.php.
References ilCronJob\getScheduleType(), ilCronJob\getScheduleValue(), and ilCronJob\isDue().
CronJobScheduleTest::weeklyScheduleProvider | ( | ) |
Definition at line 289 of file CronJobScheduleTest.php.
References getJob(), and ilCronJob\SCHEDULE_TYPE_WEEKLY.
|
private |
Definition at line 29 of file CronJobScheduleTest.php.
Referenced by getJob(), and jobProvider().
|
private |
Definition at line 31 of file CronJobScheduleTest.php.