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

testInsertRow() public method

public testInsertRow ( )
    public function testInsertRow()
    {
        $snippet = $this->snippetFromMethod(Table::class, 'insertRow');
        $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());
    }