GraphAware\Neo4j\Client\Tests\Integration\CypherIntegrationTest::testPathIsReturned PHP Method

testPathIsReturned() public method

public testPathIsReturned ( )
    public function testPathIsReturned()
    {
        $query = 'CREATE p=(a:Cool)-[:RELATES]->(b:NotSoCool) RETURN p';
        $record1 = $this->client->run($query, [], null, 'http')->firstRecord();
        $record2 = $this->client->run($query, [], null, 'bolt')->firstRecord();
        $this->assertInstanceOf(Path::class, $record1->get('p'));
        $this->assertInstanceOf(Path::class, $record2->get('p'));
    }