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

testQueryWithLimit() public method

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