Google\Cloud\Tests\System\Datastore\RunQueryTest::testQueryWithOffset PHP Method

testQueryWithOffset() public method

public testQueryWithOffset ( )
    public function testQueryWithOffset()
    {
        $query = self::$client->query()->kind(self::$kind)->offset(3);
        $results = $this->runQueryAndSortResults($query);
        $this->assertEquals(self::$data[3], $results[0]->get());
        $this->assertEquals(1, count($results));
    }