| Conditions | 1 |
| Paths | 1 |
| Total Lines | 28 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 15 | public function testSetEmbeddable() |
||
| 16 | { |
||
| 17 | $command = $this->container->get(SetEmbeddableCommand::class); |
||
| 18 | $tester = $this->getCommandTester($command); |
||
| 19 | $entities = $this->generateEntities(); |
||
| 20 | |||
| 21 | $tester->execute( |
||
| 22 | [ |
||
| 23 | '-'.SetEmbeddableCommand::OPT_ENTITY_SHORT => $entities[0], |
||
| 24 | '-'.SetEmbeddableCommand::OPT_EMBEDDABLE_SHORT => HasMoneyEmbeddableTrait::class, |
||
| 25 | ] |
||
| 26 | ); |
||
| 27 | |||
| 28 | $tester->execute( |
||
| 29 | [ |
||
| 30 | '-'.SetEmbeddableCommand::OPT_ENTITY_SHORT => $entities[1], |
||
| 31 | '-'.SetEmbeddableCommand::OPT_EMBEDDABLE_SHORT => HasFullNameEmbeddableTrait::class, |
||
| 32 | ] |
||
| 33 | ); |
||
| 34 | |||
| 35 | $tester->execute( |
||
| 36 | [ |
||
| 37 | '--'.SetEmbeddableCommand::OPT_ENTITY => $entities[2], |
||
| 38 | '--'.SetEmbeddableCommand::OPT_EMBEDDABLE => HasAddressEmbeddableTrait::class, |
||
| 39 | ] |
||
| 40 | ); |
||
| 41 | |||
| 42 | $this->assertTrue($this->qaGeneratedCode()); |
||
| 43 | } |
||
| 45 |