Closed (outdated)
Project:
D7 Media
Version:
7.x-2.x-dev
Component:
Tests
Priority:
Minor
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
14 Jan 2011 at 02:39 UTC
Updated:
25 Jan 2019 at 20:52 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
bbinkovitz commentedThere are simpletests for parsing markup generated by the WYSIWYG editor here included in patches for #1268116: WYSIWYG does not record file usage. They might be helpful.
Comment #2
ParisLiakos commentedComment #3
arthurf commentedI agree with bbinkovitz that #1268116 likely covers most of this. The patch included here explicitly checks the insertion. A question that I have is that it looks like there are two possible types of insertion code- json and urlencoded json. Looking at includes/media.filter.inc there are two regexs that are (maybe) being used for the code: MEDIA_TOKEN_REGEX and MEDIA_TOKEN_REGEX_ALT. I'm unclear if the second one ever actually happens. The test in this patch fails on this. This maybe because this data isn't urlencoded or something else. It would be good for somebody to weigh in on this.
Setting this priority to minor because these tests are at least partially covered in #1268116
Comment #4
chris matthews commentedClosing this issue as outdated. However, if you think this issue is still important, please let us know and we will gladly re-open it for review.
sincerely,
- the Drupal Media Team