Closed (fixed)
Project:
Drupal core
Version:
8.8.x-dev
Component:
phpunit
Priority:
Normal
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
23 May 2020 at 13:03 UTC
Updated:
10 Jun 2020 at 16:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
jungleAdding the "Deprecated assertions" tag to add this into the kanban board https://contribkanban.com/board/Deprecatedassertions
Comment #3
mondrakeon this.
Comment #4
mondrakeThis seems simple. Replaced calls, removed deprecation silencer, added deprecation test.
Comment #5
daffie commentedYou tried to create a second method with the same name.
Comment #6
mondrakeOops. Thank you.
Comment #7
longwaveLooks good to me!
Comment #8
xjmComment #9
xjmTitle cleanup fail.
Comment #11
xjmPerfect, thanks! All remaining references are either the method itself or its legacy tests:
PTBP for a backport that doesn't un-silence the deprecation. Thanks!
Comment #12
bunty badgujar commentedComment #13
bunty badgujar commented#6 ported to 8.8.x
Comment #15
mondrake@Bunty Badgujar we have to remove the deprecation test, too - see #3139403-26: Replace usages of deprecated AssertLegacyTrait::assertElement(Not)Present()
Comment #16
bunty badgujar commented@mondrake, Thanks for this information. I thought deprecation test handle similar to 9.x.
Removed deprecation test.
Comment #17
mondrakeLooks ike we need a separate patch for D8.9 and D9.0 - general suggestion: when backporting, go from the highest to the lowest... so that the flows of commit can be 9.0, then 8.9, then 8.8. I doubt core committers will be willing to commit something that leaves holes in between... :)
Comment #18
bunty badgujar commentedAdding patch for 8.9 and 9.0. Re-adding #16 just to combine all patch in single comment.
Comment #19
mondrakeLGTM
Comment #20
xjmThese look good. There is one other place the old method is used in D8:
Should we fix that too?
Meanwhile I'll commit the 9.0.x patch but just waiting on a retest.
Comment #21
xjmForgot to add a note in the title.
Comment #22
mondrake#20 that's a Simpletest base class, so no, it should not be touched.
Comment #23
xjmAh good call, thanks @mondrake. I did not actually expect them to still be around in 8.9! I guess it's because it was a base class and we didn't want to
rm -rfthose since they can be considered API.Comment #24
bunty badgujar commentedComment #28
xjmCommitted the backports to 9.0.x, 8.9.x, and 8.8.x. Thanks all!
Comment #29
xjmComment #30
xjm#28 did not take for some reason.