Closed (fixed)
Project:
Drupal core
Version:
9.0.x-dev
Component:
base system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
28 Jul 2020 at 19:40 UTC
Updated:
14 Aug 2020 at 15:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
longwaveThis also passes for me if I modify ViewEvent to be final in Symfony 4.
Comment #3
catchVery nice
Should we change ::createEventMock() to ::createEvent()? Otherwise looks great.
Comment #4
longwaveYeah, I did think about renaming the method just after I posted the patch. NW to do that.
Comment #5
ravi.shankar commentedI'll work on this.
Comment #6
ravi.shankar commentedHere I have made changes as per comment #3.
Comment #7
catch#6 looks right to me, thanks!
Comment #8
longwaveThe docblock needs updating to match, let's remove the word "alias" and change "return" to "returns" in the description, fix the return typehint to the ViewEvent object, and remove the word "mock" from the description here too.
Comment #9
hardik_patel_12 commentedI think we have to change return type of createEventMock() method also
Comment #10
hardik_patel_12 commentedUpdating docblock of createEvent() method , kindly review.
Comment #11
longwaveLooks good, thanks!
Comment #12
alexpottCommitted and pushed 67ceb1be5c to 9.1.x and 0bc02e8efd to 9.0.x. Thanks!
Backported to 9.0.x as this is a test-only change.