| Conditions | 1 |
| Paths | 1 |
| Total Lines | 6 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | public function testOneUserCanHaveOnlyOneAccount(): void |
||
| 28 | { |
||
| 29 | $this->getEntityManager()->getConnection()->insert('account', ['owner_id' => 1000, 'iban' => uniqid()]); |
||
| 30 | |||
| 31 | $this->expectException(UniqueConstraintViolationException::class); |
||
| 32 | $this->getEntityManager()->getConnection()->insert('account', ['owner_id' => 1000, 'iban' => uniqid()]); |
||
| 33 | } |
||
| 35 |