function UltimateCronRulesUnitTestCase::testIntervalsSpecificMinute in Ultimate Cron 6
Same name and namespace in other branches
- 7.2 tests/rules.test \UltimateCronRulesUnitTestCase::testIntervalsSpecificMinute()
- 7 tests/rules.test \UltimateCronRulesUnitTestCase::testIntervalsSpecificMinute()
File
- tests/
rules.test, line 83 - Tests for Ultimate Cron's cron parser
Class
Code
function testIntervalsSpecificMinute() {
$intervals = $this
->getIntervals('0 12 * * *');
$this
->assertEqual($intervals['minutes'], array(
0,
), 'Expected minutes to be 0');
$intervals = $this
->getIntervals('10 12 * * *');
$this
->assertEqual($intervals['minutes'], array(
10,
), 'Expected minutes to be 10');
$intervals = $this
->getIntervals('59 12 * * *');
$this
->assertEqual($intervals['minutes'], array(
59,
), 'Expected minutes to be 59');
}