public function ScheduleIntervalTest::scheduleIntervalsTestCases in Webform Scheduled Tasks 8.2
Test cases for ::testScheduleIntervals.
File
- tests/
src/ Kernel/ ScheduleIntervalTest.php, line 71
Class
- ScheduleIntervalTest
- Test the scheduling intervals.
Namespace
Drupal\Tests\webform_scheduled_tasks\KernelCode
public function scheduleIntervalsTestCases() {
return [
'Every day' => [
[
'interval' => [
'amount' => 1,
'multiplier' => 86400,
],
],
1000086400,
],
'Every 6 weeks' => [
[
'interval' => [
'amount' => 6,
'multiplier' => 604800,
],
],
1003628800,
],
'Every 42 minutes' => [
[
'interval' => [
'amount' => 42,
'multiplier' => 60,
],
],
1000002520,
],
];
}