Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
21 | public function testSLCWithVersion() : void |
||
22 | { |
||
23 | $entity = new GH7067Entity(); |
||
24 | $entity->lastUpdate = new \DateTime(); |
||
25 | |||
26 | $this->em->persist($entity); |
||
27 | $this->em->flush(); |
||
28 | $this->em->clear(); |
||
29 | |||
30 | /** @var GH7067Entity $notCached */ |
||
31 | $notCached = $this->em->find(GH7067Entity::class, $entity->id); |
||
32 | |||
33 | self::assertNotNull($notCached->version, 'Version already cached by persister above, it must be not null'); |
||
34 | |||
35 | $notCached->lastUpdate = new \DateTime(); |
||
36 | |||
37 | $this->em->flush(); |
||
38 | $this->em->clear(); |
||
39 | } |
||
70 |