@@ 161-169 (lines=9) @@ | ||
158 | $this->assertEquals($execution->getUuid(), $result->getUuid()); |
|
159 | } |
|
160 | ||
161 | public function testFindScheduledFuture() |
|
162 | { |
|
163 | $task = $this->createTask(); |
|
164 | $this->taskRepository->save($task); |
|
165 | ||
166 | $this->save($task, new \DateTime('+1 hour')); |
|
167 | ||
168 | $this->assertNull($this->taskExecutionRepository->findNextScheduled()); |
|
169 | } |
|
170 | ||
171 | public function testFindScheduledSkipped() |
|
172 | { |
|
@@ 171-179 (lines=9) @@ | ||
168 | $this->assertNull($this->taskExecutionRepository->findNextScheduled()); |
|
169 | } |
|
170 | ||
171 | public function testFindScheduledSkipped() |
|
172 | { |
|
173 | $task = $this->createTask(); |
|
174 | $this->taskRepository->save($task); |
|
175 | ||
176 | $this->save($task, new \DateTime('+1 hour')); |
|
177 | ||
178 | $this->assertNull($this->taskExecutionRepository->findNextScheduled()); |
|
179 | } |
|
180 | ||
181 | /** |
|
182 | * Save a new execution to database. |