From 645cccf2db16209d4192400d90d6256138375db7 Mon Sep 17 00:00:00 2001 From: Marco Pivetta Date: Tue, 22 Aug 2017 10:24:46 +0200 Subject: [PATCH] #1521 DDC-2922 adapting test so the `UnitOfWork` stops bragging about previous inconsistent states --- tests/Doctrine/Tests/ORM/UnitOfWorkTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/Doctrine/Tests/ORM/UnitOfWorkTest.php b/tests/Doctrine/Tests/ORM/UnitOfWorkTest.php index ab6bd9c2c..12eadbdaa 100644 --- a/tests/Doctrine/Tests/ORM/UnitOfWorkTest.php +++ b/tests/Doctrine/Tests/ORM/UnitOfWorkTest.php @@ -746,6 +746,7 @@ class UnitOfWorkTest extends OrmTestCase self::assertEmpty($persister2->getInserts()); } + $this->_unitOfWork->clear(); $this->_unitOfWork->persist(new CascadePersistedEntity()); $this->_unitOfWork->commit();