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

testCreateTable() public method

public testCreateTable ( )
    public function testCreateTable()
    {
        $this->connection->insertTable(Argument::any())->shouldBeCalledTimes(1)->willReturn([]);
        $dataset = $this->getDataset($this->connection);
        $snippet = $this->snippetFromMethod(Dataset::class, 'createTable');
        $snippet->addLocal('dataset', $dataset);
        $res = $snippet->invoke('table');
        $this->assertInstanceOf(Table::class, $res->returnVal());
    }