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

testMappedSuperclassTypeMapping() public method

public testMappedSuperclassTypeMapping ( ClassMetadata $class )
$class Doctrine\ODM\PHPCR\Mapping\ClassMetadata
    public function testMappedSuperclassTypeMapping($class)
    {
        $this->assertTrue($class->isMappedSuperclass);
        $this->assertEquals("phpcr:test", $class->nodeType);
        $this->assertEquals('Doctrine\\Tests\\ODM\\PHPCR\\Mapping\\Model\\DocumentRepository', $class->customRepositoryClassName);
        $this->assertEquals("children", $class->translator);
        $this->assertEquals(array('mix:one', 'mix:two'), $class->mixins);
        $this->assertEquals("simple", $class->versionable);
        $this->assertTrue($class->referenceable);
        $this->assertEquals('id', $class->identifier, 'A driver should always be able to give mapping for a mapped superclass,' . PHP_EOL . 'and let classes mapped with other drivers inherit this mapping entirely.');
        return $class;
    }
AbstractMappingDriverTest