DDC-727 - Test shows expected behavior, no failure
This commit is contained in:
parent
810a129a32
commit
d3419780f9
1 changed files with 11 additions and 0 deletions
|
@ -40,4 +40,15 @@ class ReferenceProxyTest extends \Doctrine\Tests\OrmFunctionalTestCase
|
|||
$productProxy = $this->_factory->getProxy('Doctrine\Tests\Models\ECommerce\ECommerceProduct', array('id' => $id));
|
||||
$this->assertEquals('Doctrine Cookbook', $productProxy->getName());
|
||||
}
|
||||
|
||||
/**
|
||||
* @group DDC-727
|
||||
*/
|
||||
public function testAccessMetatadaForProxy()
|
||||
{
|
||||
$entity = $this->_em->getReference('Doctrine\Tests\Models\ECommerce\ECommerceProduct' , 1);
|
||||
$class = $this->_em->getClassMetadata(get_class($entity));
|
||||
|
||||
$this->assertEquals('Doctrine\Tests\Models\ECommerce\ECommerceProduct', $class->name);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue