[PR #8594] Ensure test is suffixed with Test #11079

Open
opened 2026-01-22 16:09:39 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/doctrine/orm/pull/8594

State: closed
Merged: Yes


In #8591 , I noticed that some tests were not run, and found an exhaustive list of tests that need to be renamed. Some did not require much modifications to run again, but that last one does not pass in the CI, although it passes locally on my machine.

The assertion that fails is about an entity fetched through a one-to-one relationship. It is not supposed to be a proxy but on the CI, it seems to be.

The test that fails looks like this: 7de84537f6/tests/Doctrine/Tests/ORM/Functional/ClassTableInheritanceTest2.php (L38-L62)

The failure looks like this:

1) Doctrine\Tests\ORM\Functional\ClassTableInheritanceSecondTest::testOneToOneAssocToBaseTypeBidirectional
Failed asserting that Doctrine\Tests\Proxies\__CG__\Doctrine\Tests\ORM\Functional\CTIChild Object (...) is not an instance of interface "Doctrine\ORM\Proxy\Proxy".
**Original Pull Request:** https://github.com/doctrine/orm/pull/8594 **State:** closed **Merged:** Yes --- In #8591 , I noticed that some tests were not run, and found an exhaustive list of tests that need to be renamed. Some did not require much modifications to run again, but that last one does not pass in the CI, although it passes locally on my machine. The assertion that fails is about an entity fetched through a one-to-one relationship. It is not supposed to be a proxy but on the CI, it seems to be. The test that fails looks like this: https://github.com/doctrine/orm/blob/7de84537f61129a96658e50799131dec779c55bd/tests/Doctrine/Tests/ORM/Functional/ClassTableInheritanceTest2.php#L38-L62 The failure looks like this: ``` 1) Doctrine\Tests\ORM\Functional\ClassTableInheritanceSecondTest::testOneToOneAssocToBaseTypeBidirectional Failed asserting that Doctrine\Tests\Proxies\__CG__\Doctrine\Tests\ORM\Functional\CTIChild Object (...) is not an instance of interface "Doctrine\ORM\Proxy\Proxy". ```
admin added the pull-request label 2026-01-22 16:09:39 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#11079