public function testUpdateBucketToPublic() { $guzzle = $this->buildGuzzleFromResponses([$this->buildResponseFromStub(200, [], 'authorize_account.json'), $this->buildResponseFromStub(200, [], 'update_bucket_to_public.json')]); $client = new Client('testId', 'testKey', ['client' => $guzzle]); $bucket = $client->updateBucket(['BucketId' => 'bucketId', 'BucketType' => Bucket::TYPE_PUBLIC]); $this->assertInstanceOf(Bucket::class, $bucket); $this->assertEquals('bucketId', $bucket->getId()); $this->assertEquals(Bucket::TYPE_PUBLIC, $bucket->getType()); }