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