Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php declare(strict_types=1); |
||
36 | public function entitiesCanBeJsonSerialised(): void |
||
37 | { |
||
38 | $entity = $this->getTestEntityGeneratorFactory() |
||
39 | ->createForEntityFqn($this->getCopiedFqn(self::TEST_ENTITY_FQN)) |
||
40 | ->generateEntity(); |
||
41 | $serialised = \ts\json_encode($entity); |
||
42 | self::assertNotEmpty($serialised); |
||
43 | $decoded = json_decode($serialised, true); |
||
44 | self::assertNotEmpty($decoded); |
||
45 | self::assertArrayHasKey('id', $decoded); |
||
46 | self::assertCount(25, $decoded); |
||
|
|||
47 | |||
50 |