Google\Cloud\Tests\Snippets\BigQuery\TableTest::testInsertRows PHP Method

testInsertRows() public method

public testInsertRows ( )
    public function testInsertRows()
    {
        $snippet = $this->snippetFromMethod(Table::class, 'insertRows');
        $snippet->addLocal('table', $this->table);
        $this->connection->insertAllTableData(Argument::any())->shouldBeCalled()->willReturn([]);
        $this->table->setConnection($this->connection->reveal());
        $res = $snippet->invoke('insertResponse');
        $this->assertInstanceOf(InsertResponse::class, $res->returnVal());
    }