#1235 DDC-3470 - joined subclass persister empty executeInserts()
method return type test
This commit is contained in:
parent
8f15c5e905
commit
e2b34ff5d2
@ -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());
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user