Google\Cloud\Tests\Datastore\Query\GqlQueryTest::testAllowLiterals PHP Method

testAllowLiterals() public method

public testAllowLiterals ( )
    public function testAllowLiterals()
    {
        $query = new GqlQuery($this->mapper, 'SELECT * FROM foo');
        $res = $query->queryObject();
        $this->assertFalse($res['allowLiterals']);
        $query = new GqlQuery($this->mapper, 'SELECT * FROM foo', ['allowLiterals' => true]);
        $res = $query->queryObject();
        $this->assertTrue($res['allowLiterals']);
    }