Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Part of #1811016: [meta] Decouple tests from Node module. From the VDC sandbox.
To test that assertTitle()
and assertNoTitle()
work as expected, SimpleTestTest
visits node
and checks the title pattern. Remove this dependency by checking user
instead. (We still specify the path explicitly since we are looking for a specific title pattern.)
Bonus: Remove a couple of vague assertion messages in the process.
Comment | File | Size | Author |
---|---|---|---|
simpletest-test.patch | 2.12 KB | xjm | |
Comments
Comment #1
tim.plunkettLooks good!
Comment #2
webchickCommitted and pushed to 8.x. Thanks!
Comment #3.0
(not verified) CreditAttribution: commentedUpdated issue summary.