From b0eda5ab40e9b3388d5639e7f1f7c251bd1d1684 Mon Sep 17 00:00:00 2001 From: Marco Pivetta Date: Wed, 21 Jun 2017 07:51:30 +0200 Subject: [PATCH] #6118 removing DDC-720 related tests for multiple flushed entities --- .../ORM/Functional/BasicFunctionalTest.php | 31 ------------------- 1 file changed, 31 deletions(-) diff --git a/tests/Doctrine/Tests/ORM/Functional/BasicFunctionalTest.php b/tests/Doctrine/Tests/ORM/Functional/BasicFunctionalTest.php index 0a3c178a11b..96319e6d050 100644 --- a/tests/Doctrine/Tests/ORM/Functional/BasicFunctionalTest.php +++ b/tests/Doctrine/Tests/ORM/Functional/BasicFunctionalTest.php @@ -1049,37 +1049,6 @@ public function testClear() self::assertEquals(UnitOfWork::STATE_DETACHED, $unitOfWork->getEntityState($address)); } - public function testFlushManyExplicitEntities() - { - $userA = new CmsUser; - $userA->username = 'UserA'; - $userA->name = 'UserA'; - - $userB = new CmsUser; - $userB->username = 'UserB'; - $userB->name = 'UserB'; - - $userC = new CmsUser; - $userC->username = 'UserC'; - $userC->name = 'UserC'; - - $this->em->persist($userA); - $this->em->persist($userB); - $this->em->persist($userC); - - $this->em->flush([$userA, $userB, $userB]); - - $userC->name = 'changed name'; - - $this->em->flush([$userA, $userB]); - $this->em->refresh($userC); - - self::assertTrue($userA->id > 0, 'user a has an id'); - self::assertTrue($userB->id > 0, 'user b has an id'); - self::assertTrue($userC->id > 0, 'user c has an id'); - self::assertEquals('UserC', $userC->name, 'name has not changed because we did not flush it'); - } - /** * @group DDC-1585 */