1
0
mirror of synced 2025-01-10 11:07:10 +03:00
doctrine2/tests/Doctrine/Tests/ORM/Persisters/JoinedSubclassPersisterTest.php

43 lines
896 B
PHP
Raw Normal View History

<?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')
);
}
/**
* @group DDC-3470
*/
public function testExecuteInsertsWillReturnEmptySetWithNoQueuedInserts()
{
$this->assertSame(array(), $this->persister->executeInserts());
}
}