public function it_should_call_api_destroy_when_calling_destroy() { // given $pid = 'pid'; $this->uploader->shouldReceive('destroy')->with($pid, array())->once(); // when $this->cloudinary_wrapper->destroy($pid); }