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

testQueryWithFilter() public method

public testQueryWithFilter ( )
    public function testQueryWithFilter()
    {
        $query = self::$client->query()->kind(self::$kind)->filter('lastName', '=', 'Smith');
        $results = $this->runQueryAndSortResults($query);
        $this->assertEquals(self::$data[0], $results[0]->get());
        $this->assertEquals(self::$data[1], $results[1]->get());
        $this->assertEquals(self::$data[3], $results[2]->get());
        $this->assertEquals(3, count($results));
    }