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

testUpdatesData() public method

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