You are here

private function RulesUnitTest::getIntervals in Ultimate Cron 8.2

3 calls to RulesUnitTest::getIntervals()
RulesUnitTest::testIntervals2MinuteRange in tests/src/Unit/RulesUnitTest.php
RulesUnitTest::testIntervals2MinuteRangeWithOffset in tests/src/Unit/RulesUnitTest.php
RulesUnitTest::testIntervalsSpecificMinute in tests/src/Unit/RulesUnitTest.php

File

tests/src/Unit/RulesUnitTest.php, line 16

Class

RulesUnitTest
Tests Drupal\ultimate_cron\CronRule.

Namespace

Drupal\Tests\ultimate_cron\Unit

Code

private function getIntervals($rule) {
  $cron = CronRule::factory($rule, $_SERVER['REQUEST_TIME']);
  return $cron
    ->getIntervals();
}