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

testFilter() public method

public testFilter ( )
    public function testFilter()
    {
        $snippet = $this->snippetFromMethod(Query::class, 'filter');
        $snippet->addLocal('query', $this->query);
        $snippet->invoke();
        $this->assertEquals(2, count($this->query->queryObject()['filter']['compositeFilter']['filters']));
    }