Example #1
0
 public function test_it_updates()
 {
     $this->volume->name = 'foo';
     $this->volume->description = 'bar';
     $expectedJson = ['volume' => ['name' => 'foo', 'description' => 'bar']];
     $this->setupMock('PUT', 'volumes/1', $expectedJson, [], 'GET_volume');
     $this->volume->update();
 }