| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | public function testWrongForeignKeysInDatabaseAreHandledByDoctrine(): void |
||
| 23 | { |
||
| 24 | // Create a row that references missing rows |
||
| 25 | $this->_em->getConnection()->insert('project', [ |
||
| 26 | // This composite foreign key doesn't exist |
||
| 27 | 'contact_category' => 999, |
||
| 28 | 'contact_number' => 999, |
||
| 29 | ]); |
||
| 30 | |||
| 31 | $projects = $this->_em->createQuery('SELECT p FROM Doctrine\Tests\ORM\Functional\Ticket\GH7692Project p')->getResult(); |
||
| 32 | $this->assertCount(1, $projects); |
||
| 33 | } |
||
| 76 |