GraphAware\Neo4j\OGM\Tests\Metadata\MetadataFactoryITest::testNodeEntityMetadataIsCreated PHP Method

testNodeEntityMetadataIsCreated() public method

    public function testNodeEntityMetadataIsCreated()
    {
        $entityMetadata = $this->entityMetadataFactory->create(Person::class);
        $this->assertInstanceOf(GraphEntityMetadata::class, $entityMetadata);
        $this->assertInstanceOf(NodeEntityMetadata::class, $entityMetadata);
        $this->assertCount(2, $entityMetadata->getPropertiesMetadata());
        $this->assertInstanceOf(EntityPropertyMetadata::class, $entityMetadata->getPropertyMetadata('name'));
    }