Problem/Motivation
There are no tests of these emails. Discovered working on #2154619: Links broken in new releases email
Steps to reproduce
Proposed resolution
Write the tests
Remaining tasks
Patch
Review
Commit
User interface changes
N/A
API changes
N/A
Data model changes
N/A
Release notes snippet
N/A
| Comment | File | Size | Author |
|---|---|---|---|
| #14 | 3276953-nr-bot.txt | 1.42 KB | needs-review-queue-bot |
| #10 | 3276953-10.patch | 8.82 KB | quietone |
| #10 | interdiff-2-10.txt | 915 bytes | quietone |
| #2 | 3276953-2.patch | 8.82 KB | quietone |
Issue fork drupal-3276953
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3276953-11.x
changes, plain diff MR !4654
Comments
Comment #2
quietone commentedMaybe this will sufficient.
Comment #3
quietone commentedComment #4
smustgrave commentedShouldn't these fail until #2154619: Links broken in new releases email is merged?
Comment #5
quietone commentedNo. This is testing the existing email message.
Comment #6
smustgrave commentedIn that case test looks good.
Comment #8
quietone commentedRandom test failure.
Comment #9
quietone commentedComment #10
quietone commentedText change needed due to #3182405: Do not use verb "Install" for things other than turning on modules/themes.
The interdiff was made with the option,
--colour-words.Comment #11
smustgrave commentedRestoring status.
Comment #13
smustgrave commentedRandom failure
Comment #14
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
This does not mean that the patch needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.
Comment #17
rpayanmI swapped out
withConsecutive()forwillReturnOnConsecutiveCalls().Comment #18
rpayanmComment #19
quietone commentedBased on the comment at #3306554-24: InvocationMocker::withConsecutive() is deprecated in PHPUnit 9.6 and removed from PHPUnit 10, I don't think that replacing with
willReturnOnConsecutiveCalls()is the long term solution.Comment #20
quietone commentedWhat about using
will($this->returnValueMap(? I have updated the MR with that idea, plus some other improvements.Comment #21
smustgrave commentedJust copying over comment from the other issue
@longwave
@quietone's solution appeared to work and believe covers the same as what withConsecutive() did. The other issue used a custom callBack but not sure that applies here.
Comment #22
longwaveNew test coverage for something previously untested is always nice. The new code looks good to me and I can't think of anything else to add.
Committed and pushed 4f726e041b to 11.x and beedcb6bde to 10.2.x. Thanks!