public function it_should_upload_preset_when_calling_upload_preset() { $pid = 'pid1'; // given $this->api->shouldReceive('upload_preset')->once()->with($pid, array()); // when $this->cloudinary_wrapper->uploadPreset($pid); }