| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 29 | public function testInputsDefinitionCommand() |
||
| 30 | { |
||
| 31 | // check argument |
||
| 32 | $definition = $this->command->getDefinition(); |
||
| 33 | $this->assertTrue($definition->hasArgument('name')); |
||
| 34 | $this->assertTrue($definition->getArgument('name')->isRequired()); // Name is required to find the service |
||
| 35 | |||
| 36 | //check options |
||
| 37 | $this->assertTrue($definition->hasOption('no-confirmation')); |
||
| 38 | $this->assertFalse($definition->getOption('no-confirmation')->acceptValue()); // It shouldn't accept value because it is a true/false input |
||
| 39 | } |
||
| 41 |