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

verify_delete_alias_returns_boolean() public method

    public function verify_delete_alias_returns_boolean()
    {
        // given
        $pid = 'pid';
        $this->uploader->shouldReceive('destroy')->with($pid, array())->once()->andReturn(['result' => 'ok']);
        // when
        $deleted = $this->cloudinary_wrapper->delete($pid);
        $this->assertTrue($deleted);
    }
CloudinaryWrapperTest