2014-12-31 11:44:39 +03:00
|
|
|
<?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')
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2014-12-31 11:45:33 +03:00
|
|
|
/**
|
|
|
|
* @group DDC-3470
|
|
|
|
*/
|
2014-12-31 11:44:39 +03:00
|
|
|
public function testExecuteInsertsWillReturnEmptySetWithNoQueuedInserts()
|
|
|
|
{
|
|
|
|
$this->assertSame(array(), $this->persister->executeInserts());
|
|
|
|
}
|
|
|
|
}
|