Google\Cloud\Tests\Snippets\BigQuery\QueryResultsTest::testIsComplete PHP Method

testIsComplete() public method

public testIsComplete ( )
    public function testIsComplete()
    {
        $snippet = $this->snippetFromMethod(QueryResults::class, 'isComplete');
        $snippet->addLocal('queryResults', $this->qr);
        $this->info['jobComplete'] = true;
        $this->connection->getQueryResults(Argument::any())->willReturn($this->info);
        $this->qr->setConnection($this->connection->reveal());
        $res = $snippet->invoke();
        $this->assertEquals('Query complete!', $res->output());
    }