Example: use Google\Cloud\ServiceBuilder; $cloud = new ServiceBuilder(); $storage = $cloud->storage(); $bucket = $storage->bucket('my-bucket'); $acl = $bucket->acl();
 public function testUpdate()
 {
     $accessControl = ['entity' => 'allAuthenticatedUsers', 'role' => 'WRITER'];
     $this->connection->patchAcl(Argument::any())->willReturn($accessControl);
     $acl = new Acl($this->connection->reveal(), 'bucketAccessControls', ['bucket' => 'bucket']);
     $this->assertEquals($accessControl, $acl->update('allAuthenticatedUsers', 'WRITER'));
 }