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

testGqlQueryWithLiteral() public method

    public function testGqlQueryWithLiteral()
    {
        $query = self::$client->gqlQuery("SELECT * From Person WHERE lastName = 'McAllen'", ['allowLiterals' => true]);
        $results = $this->runQueryAndSortResults($query);
        $this->assertEquals(self::$data[2], $results[0]->get());
        $this->assertEquals(1, count($results));
    }