GraphAware\Neo4j\Client\Tests\Integration\RelationshipEntityITest::testRelationshipEntitesAreRetrieved PHP Method

testRelationshipEntitesAreRetrieved() public method

    public function testRelationshipEntitesAreRetrieved()
    {
        /** @var Person $tom */
        $tom = $this->getPerson('Tom Hanks');
        foreach ($tom->getRoles() as $role) {
            $this->assertInstanceOf(Role::class, $role);
            $this->assertEquals($tom->id, $role->getActor()->getId());
            $this->assertInstanceOf(Movie::class, $role->getMovie());
            $this->assertInternalType('array', $role->getRoles());
        }
    }