1
0
mirror of synced 2025-03-21 07:23:55 +03:00

#1235 DDC-3470 - joined subclass persister empty executeInserts() method return type test

This commit is contained in:
Marco Pivetta 2014-12-31 09:44:39 +01:00
parent 8f15c5e905
commit e2b34ff5d2

View File

@ -0,0 +1,39 @@
<?php
namespace Doctrine\Tests\ORM\Persisters;
use Doctrine\ORM\Persisters\JoinedSubclassPersister;
use Doctrine\Tests\OrmTestCase;
class JoinedSubClassPersisterTest extends OrmTestCase
{
/**
* @var JoinedSubclassPersister
*/
protected $persister;
/**
* @var \Doctrine\ORM\EntityManager
*/
protected $em;
/**
* {@inheritDoc}
*/
protected function setUp()
{
parent::setUp();
$this->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());
}
}