| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 26 | public function generateEmbeddableFromArchetype(): void |
||
| 27 | { |
||
| 28 | $command = $this->container->get(GenerateEmbeddableFromArchetypeCommand::class); |
||
| 29 | $tester = $this->getCommandTester($command); |
||
| 30 | $tester->execute( |
||
| 31 | [ |
||
| 32 | '-' . GenerateEmbeddableFromArchetypeCommand::OPT_PROJECT_ROOT_PATH_SHORT => self::WORK_DIR, |
||
| 33 | '-' . GenerateEmbeddableFromArchetypeCommand::OPT_PROJECT_ROOT_NAMESPACE_SHORT => |
||
| 34 | self::TEST_PROJECT_ROOT_NAMESPACE, |
||
| 35 | '-' . GenerateEmbeddableFromArchetypeCommand::OPT_NEW_EMBEDDABLE_CLASS_NAME_SHORT => 'PriceEmbeddable', |
||
| 36 | '-' . GenerateEmbeddableFromArchetypeCommand::OPT_ARCHETYPE_OBJECT_FQN_SHORT => |
||
| 37 | MoneyEmbeddable::class, |
||
| 38 | ] |
||
| 39 | ); |
||
| 40 | |||
| 41 | self::assertTrue($this->qaGeneratedCode()); |
||
| 42 | } |
||
| 44 |