Closed (fixed)
Project:
Drupal core
Version:
8.4.x-dev
Component:
media system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
18 Jul 2017 at 11:07 UTC
Updated:
3 Aug 2017 at 13:35 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
chr.fritschComment #3
marcoscanoIn #2827014: Throw an exception when testing status code or response headers in functional JavaScript tests I believe
getStatusCode()is being deprecated from JavascriptTests, but we still can use it in Functional tests. Can't we just create the type programmatically, then visit the page and check the status code using a functional test?Comment #4
chr.fritschThis is now unblocked. I will work on the tests
Comment #5
chr.fritschHere is the patch now as a BTB Test.
And i removed the deletion of media_entity_operations_alter, because it will happen in #2895857: Remove media_entity_operation_alter() as planned earlier
Comment #6
wim leersOnly nits:
Just having a comment for the entire function seems sufficient to me.
Nit: extraneous newline.
This is used only once, can be put on a single line, without assigning to a temporary variable.
Comment #7
chr.fritschFixed everything from #6
Comment #8
wim leers#2895857: Remove media_entity_operation_alter() as planned earlier landed, so that part of #2 is already in :)
Because of that, this is only adding testing coverage. #7 looks perfect.
Comment #11
gábor hojtsyYay, love when things fall into place like that. Thanks a lot!