JD\Cloudder\Test\CloudinaryWrapperTest::it_should_call_api_destroy_when_calling_destroy PHP Method

it_should_call_api_destroy_when_calling_destroy() public method

    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);
    }
CloudinaryWrapperTest