Google\Cloud\Tests\Snippets\BigQuery\DatasetTest::testExists PHP Method

testExists() public method

public testExists ( )
    public function testExists()
    {
        $this->connection->getDataset(Argument::any())->shouldBeCalledTimes(1)->willReturn([]);
        $dataset = $this->getDataset($this->connection);
        $snippet = $this->snippetFromMethod(Dataset::class, 'exists');
        $snippet->addLocal('dataset', $dataset);
        $res = $snippet->invoke('dataset');
        $this->assertEquals(true, $res->output());
    }