| Conditions | 1 |
| Paths | 1 |
| Total Lines | 20 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 29 | public function theEntityCanBeSavedAndLoadedWithCorrectValues() |
||
| 30 | { |
||
| 31 | $entity = new $this->entityFqn; |
||
| 32 | $entity->getFullNameEmbeddable() |
||
| 33 | ->setTitle('Mr') |
||
| 34 | ->setFirstname('Aklhasd') |
||
| 35 | ->setMiddleNames([ |
||
| 36 | 'Blah', |
||
| 37 | 'Foo', |
||
| 38 | 'Cheese', |
||
| 39 | ]) |
||
| 40 | ->setLastName('TestyTest') |
||
| 41 | ->setSuffix('Jr'); |
||
| 42 | |||
| 43 | $this->getEntitySaver()->save($entity); |
||
| 44 | |||
| 45 | $loaded = $this->getEntityManager() |
||
| 46 | ->getRepository($this->entityFqn) |
||
| 47 | ->findAll()[0]; |
||
| 48 | $this->assertSame($entity, $loaded); |
||
| 49 | } |
||
| 51 |