@@ 12-18 (lines=7) @@ | ||
9 | */ |
|
10 | class ScheduleTest extends \PHPUnit_Framework_TestCase |
|
11 | { |
|
12 | public function testSimple() |
|
13 | { |
|
14 | $schedule = new Schedule(['value' => '@daily']); |
|
15 | ||
16 | $this->assertEquals('0 0 * * *', $schedule->runEvery); |
|
17 | $this->assertTrue($schedule->active); |
|
18 | } |
|
19 | ||
20 | public function testInterval() |
|
21 | { |
|
@@ 20-26 (lines=7) @@ | ||
17 | $this->assertTrue($schedule->active); |
|
18 | } |
|
19 | ||
20 | public function testInterval() |
|
21 | { |
|
22 | $schedule = new Schedule(['runEvery' => '@daily']); |
|
23 | ||
24 | $this->assertEquals('0 0 * * *', $schedule->runEvery); |
|
25 | $this->assertTrue($schedule->active); |
|
26 | } |
|
27 | ||
28 | public function testIntervalActiveParams() |
|
29 | { |