Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
29 | public function testOptimisticLockNoExceptionOnFind() : void |
||
30 | { |
||
31 | try { |
||
32 | $entity = $this->_em->find(GH7366Entity::class, 1, LockMode::OPTIMISTIC); |
||
33 | } catch (TransactionRequiredException $e) { |
||
34 | self::fail('EntityManager::find() threw TransactionRequiredException with LockMode::OPTIMISTIC'); |
||
35 | } |
||
36 | self::assertEquals('baz', $entity->getName()); |
||
37 | } |
||
76 |