| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 13 | public function testSetEmbeddable() |
||
| 14 | { |
||
| 15 | $command = $this->container->get(GenerateEmbeddableFromArchetypeCommand::class); |
||
| 16 | $tester = $this->getCommandTester($command); |
||
| 17 | $tester->execute( |
||
| 18 | [ |
||
| 19 | '-'.GenerateEmbeddableFromArchetypeCommand::OPT_PROJECT_ROOT_PATH_SHORT => self::WORK_DIR, |
||
| 20 | '-'.GenerateEmbeddableFromArchetypeCommand::OPT_PROJECT_ROOT_NAMESPACE_SHORT => |
||
| 21 | self::TEST_PROJECT_ROOT_NAMESPACE, |
||
| 22 | '-'.GenerateEmbeddableFromArchetypeCommand::OPT_NEW_EMBEDDABLE_CLASS_NAME_SHORT => 'PriceEmbeddable', |
||
| 23 | '-'.GenerateEmbeddableFromArchetypeCommand::OPT_ARCHETYPE_OBJECT_FQN_SHORT => |
||
| 24 | MoneyEmbeddable::class, |
||
| 25 | ] |
||
| 26 | ); |
||
| 27 | |||
| 28 | $this->assertTrue($this->qaGeneratedCode()); |
||
| 29 | } |
||
| 31 |