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