Google\Cloud\Tests\Snippets\Datastore\Query\QueryTest::testProjection PHP Method

testProjection() public method

public testProjection ( )
    public function testProjection()
    {
        $snippet = $this->snippetFromMethod(Query::class, 'projection');
        $snippet->addLocal('query', $this->query);
        $snippet->invoke();
        $this->assertEquals([['property' => $this->propertyName('firstName')], ['property' => $this->propertyName('lastName')]], $this->query->queryObject()['projection']);
    }