You are here

public function ClassMetadataFactoryTest::testGetParentMetadata in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/doctrine/common/tests/Doctrine/Tests/Common/Persistence/Mapping/ClassMetadataFactoryTest.php \Doctrine\Tests\Common\Persistence\Mapping\ClassMetadataFactoryTest::testGetParentMetadata()

File

vendor/doctrine/common/tests/Doctrine/Tests/Common/Persistence/Mapping/ClassMetadataFactoryTest.php, line 48

Class

ClassMetadataFactoryTest

Namespace

Doctrine\Tests\Common\Persistence\Mapping

Code

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'));
}