JD\Cloudder\Test\CloudinaryWrapperTest::it_should_call_api_destroy_when_calling_destroy PHP Méthode

it_should_call_api_destroy_when_calling_destroy() public méthode

    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