From d3419780f9daa3eaf0400c2b6fcee0234240b1de Mon Sep 17 00:00:00 2001 From: Benjamin Eberlei Date: Wed, 15 Sep 2010 22:24:17 +0200 Subject: [PATCH] DDC-727 - Test shows expected behavior, no failure --- .../Tests/ORM/Functional/ReferenceProxyTest.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/Doctrine/Tests/ORM/Functional/ReferenceProxyTest.php b/tests/Doctrine/Tests/ORM/Functional/ReferenceProxyTest.php index 38f9b8429..f144c7885 100644 --- a/tests/Doctrine/Tests/ORM/Functional/ReferenceProxyTest.php +++ b/tests/Doctrine/Tests/ORM/Functional/ReferenceProxyTest.php @@ -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); + } }