From e2b34ff5d2688a8ee5a72bad617dbfb5384e8c6e Mon Sep 17 00:00:00 2001 From: Marco Pivetta Date: Wed, 31 Dec 2014 09:44:39 +0100 Subject: [PATCH] #1235 DDC-3470 - joined subclass persister empty `executeInserts()` method return type test --- .../JoinedSubclassPersisterTest.php | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 tests/Doctrine/Tests/ORM/Persisters/JoinedSubclassPersisterTest.php diff --git a/tests/Doctrine/Tests/ORM/Persisters/JoinedSubclassPersisterTest.php b/tests/Doctrine/Tests/ORM/Persisters/JoinedSubclassPersisterTest.php new file mode 100644 index 000000000..78e47e7f4 --- /dev/null +++ b/tests/Doctrine/Tests/ORM/Persisters/JoinedSubclassPersisterTest.php @@ -0,0 +1,39 @@ +em = $this->_getTestEntityManager(); + + $this->persister = new JoinedSubclassPersister( + $this->em, + $this->em->getClassMetadata('Doctrine\Tests\Models\JoinedInheritanceType\RootClass') + ); + } + + public function testExecuteInsertsWillReturnEmptySetWithNoQueuedInserts() + { + $this->assertSame(array(), $this->persister->executeInserts()); + } +}