public function ClassMetadataFactoryTest::testGetParentMetadata in Plug 7
File
- lib/
doctrine/ common/ tests/ Doctrine/ Tests/ Common/ Persistence/ Mapping/ ClassMetadataFactoryTest.php, line 48
Class
Namespace
Doctrine\Tests\Common\Persistence\MappingCode
public function testGetParentMetadata() {
$metadata = $this->cmf
->getMetadataFor(__NAMESPACE__ . '\\ChildEntity');
$this
->assertInstanceOf('Doctrine\\Common\\Persistence\\Mapping\\ClassMetadata', $metadata);
$this
->assertTrue($this->cmf
->hasMetadataFor(__NAMESPACE__ . '\\ChildEntity'));
$this
->assertTrue($this->cmf
->hasMetadataFor(__NAMESPACE__ . '\\RootEntity'));
}