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

testValueCanBeSetOnInstantiatedObject() public method

    public function testValueCanBeSetOnInstantiatedObject()
    {
        $entityMetadata = $this->entityMetadataFactory->create(Person::class);
        /** @var Person $o */
        $o = $entityMetadata->newInstance();
        $entityMetadata->getPropertyMetadata('name')->setValue($o, 'John');
        $this->assertEquals('John', $o->getName());
    }