Doctrine\Tests\ODM\PHPCR\Mapping\AbstractMappingDriverTest::testLoadMappedSuperclassChildTypeMapping PHP Method

testLoadMappedSuperclassChildTypeMapping() public method

    public function testLoadMappedSuperclassChildTypeMapping()
    {
        $parentClass = $this->loadMetadataForClassname('Doctrine\\Tests\\ODM\\PHPCR\\Mapping\\Model\\ClassInheritanceParentMappingObject');
        $mappingDriver = $this->loadDriver();
        $subClass = new ClassMetadata($className = 'Doctrine\\Tests\\ODM\\PHPCR\\Mapping\\Model\\ClassInheritanceChildMappingObject');
        $subClass->initializeReflection(new RuntimeReflectionService());
        $subClass->mapId($parentClass->mappings[$parentClass->identifier], $parentClass);
        $mappingDriver->loadMetadataForClass($className, $subClass);
        return $subClass;
    }
AbstractMappingDriverTest