Google\Cloud\Tests\BigQuery\TableTest::testUpdatesData PHP Method

testUpdatesData() public method

public testUpdatesData ( )
    public function testUpdatesData()
    {
        $updateData = ['friendlyName' => 'wow a name'];
        $this->connection->patchTable(Argument::any())->willReturn($updateData)->shouldBeCalledTimes(1);
        $table = $this->getTable($this->connection, ['friendlyName' => 'another name']);
        $table->update($updateData);
        $this->assertEquals($updateData['friendlyName'], $table->info()['friendlyName']);
    }