| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | public function testExecute() |
||
| 21 | { |
||
| 22 | $this->commandTester->execute( |
||
| 23 | [ |
||
| 24 | 'command' => $this->command->getName(), |
||
| 25 | ] |
||
| 26 | ); |
||
| 27 | |||
| 28 | $output = $this->commandTester->getDisplay(); |
||
| 29 | $this->assertContains('System-tasks successfully scheduled', $output); |
||
| 30 | |||
| 31 | $taskRepository = self::$kernel->getContainer()->get('task.repository.task'); |
||
| 32 | $this->assertNotNull($taskRepository->findBySystemKey('testing')); |
||
| 33 | } |
||
| 34 | |||
| 45 |