From a88550a70c0001ab4def72aa5f19122d33ca4cee Mon Sep 17 00:00:00 2001 From: Andrea Sprega Date: Sat, 25 Oct 2014 00:02:57 +0200 Subject: [PATCH] [DDC-3343] Failing test case (updated) --- tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3343Test.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3343Test.php b/tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3343Test.php index c8a1f7359..c6db00bef 100644 --- a/tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3343Test.php +++ b/tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3343Test.php @@ -39,14 +39,11 @@ class DDC3343Test extends \Doctrine\Tests\OrmFunctionalTestCase $group->users->removeElement($user); - $this->_em->persist($group); - $this->_em->flush(); - - // Even if the collection is extra lazy, the user should not have been deleted. + // Even though the collection is extra lazy, the user should not have been deleted. $this->_em->clear(); $user = $this->_em->find(__NAMESPACE__ . '\DDC3343User', $user->id); - $this->assertNotNull($user); + $this->assertInstanceOf(__NAMESPACE__ . '\DDC3343User', $user); } }