Google\Cloud\Tests\BigQuery\DatasetTest::testCreatesTable PHP Method

testCreatesTable() public method

public testCreatesTable ( )
    public function testCreatesTable()
    {
        $this->connection->insertTable(Argument::any())->willReturn(['tableReference' => ['tableId' => $this->tableId]])->shouldBeCalledTimes(1);
        $dataset = $this->getDataset($this->connection);
        $table = $dataset->createTable($this->tableId, ['metadata' => ['friendlyName' => 'A table.']]);
        $this->assertInstanceOf(Table::class, $table);
    }