Skip to content

Commit

Permalink
doctrine#6118 removing DDC-720 related tests for multiple flushed ent…
Browse files Browse the repository at this point in the history
…ities
  • Loading branch information
Ocramius authored and maglnet committed Oct 10, 2018
1 parent c880565 commit b0eda5a
Showing 1 changed file with 0 additions and 31 deletions.
31 changes: 0 additions & 31 deletions tests/Doctrine/Tests/ORM/Functional/BasicFunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit b0eda5a

Please sign in to comment.