Closed (fixed)
Project:
Drupal core
Version:
9.1.x-dev
Component:
phpunit
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
23 May 2020 at 12:47 UTC
Updated:
30 Aug 2020 at 13:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
mondrakeKick-off
Comment #4
mondrakeOn this
Comment #5
mondrakeRemoved usages, inlined comments in code where appropriate, converted a test to legacy to check deprecations, removed silencers.
Comment #6
jungleAdding the "Deprecated assertions" tag to add this into the kanban board https://contribkanban.com/board/Deprecatedassertions
Comment #7
daffie commentedThe patch needs a reroll, because #3139218: Replace usages of AssertLegacyTrait::assertResponse(), which is deprecated landed.
Comment #8
mrinalini9 commentedComment #9
mrinalini9 commentedRerolled patch for 9.1.x, please review.
Comment #10
daffie commentedAll occurrences of $this->assert(No)Option() have been replaced by $this->assertSession()->option(Not)Exists().
The method was already deprecated in 8.2.
Test has been added for deprecation testing for both methods.
The supression of the deprecation message has been removed for both methods.
All code changes look good to me.
For me it is RTBC.
Comment #11
xjmComment #12
xjmBTW I'm going to start recommending for these issues that we not do cleanups like removing the message parameters in the same patches. (#3132964: assertResponse() does not actually support a $message parameter, so stop passing one was different because that was the bug.) If we notice message parameters that aren't helpful, we can remove them and/or move them to inline documentation in separate issues.
Comment #14
xjmCommitted to 9.1.x. Let's make backport versions of this patch without the unsilencing of the deprecation message.
The backport here can include the same changes as the original commit. Please do make note of #12 for subsequent issues, though. If you notice unhelpful message parameters while patching, just make note of them and stick them in a followup.
Comment #15
xjmComment #16
saurabh-2k17 commentedComment #17
saurabh-2k17 commentedComment #18
sja112 commentedOn this.
Comment #19
sja112 commentedPatch for D9.0 and D8.9
Comment #21
sja112 commentedComment #22
bunty badgujar commentedAdded 8.8.x test in #19
Comment #23
sja112 commentedFixing failed test.
Comment #24
sja112 commentedPatch for D8.8
Comment #25
ketikagrover commentedThe occurrences have been replaced by $this->assertSession().
Changes verified on my local for D8.8, D8.9,D9.0
Looks good to me.Moving this to RTBC
Thanks
Comment #27
alexpottUnfortunately we need a reroll for 9.0.x / 8.9.x patch.
Comment #28
munish.kumar commentedComment #29
munish.kumar commentedPatch rerolled for branch 8.9.x. Interdiff is not generated from #23
Comment #30
munish.kumar commentedPlease ignore the last patch, Here is the latest patch that rerolled for both the branches 9.0.x / 8.9.x . Thanks Please review.
Comment #31
munish.kumar commentedComment #32
mondrakeMarking fixed on the basis of #3027952-54: [Plan] Remove the usage of deprecated methods in tests. Please open a separate issue for backport.
Comment #33
longwave