public function testUpdatesData()
{
$versioningData = ['versioning' => ['enabled' => true]];
$this->connection->patchBucket(Argument::any())->willReturn(['name' => 'bucket'] + $versioningData);
$bucket = new Bucket($this->connection->reveal(), 'bucket', ['name' => 'bucket', 'versioning' => ['enabled' => false]]);
$bucket->update($versioningData);
$this->assertTrue($bucket->info()['versioning']['enabled']);
}