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.
Currently the method assertNodeAccess() is a method of NodeAccessLanguageTest.php. This is a generalized test that would be helpful to other test classes both in core and contrib. Hence, let's move it to WebTestBase.php where it would be available to all tests that extend that class.
Comment | File | Size | Author |
---|---|---|---|
#1 | 1805624-1-move-assert.patch | 2.89 KB | Lars Toomre |
Comments
Comment #1
Lars Toomre CreditAttribution: Lars Toomre commentedHere is a untested patch for this issue. Reviewers will note the addition of a docblock plus the renaming of $msg to $message and $ops to $operations in order to conform with convention that variables should not be abbreviations.
Comment #2
Lars Toomre CreditAttribution: Lars Toomre commentedGrr.. Really need to remember to set right status!
Comment #4
Lars Toomre CreditAttribution: Lars Toomre commentedLooks like method assertNodeAccess() can be removed from NodeAccessTest.php and use the version that now is being moved to WebTestBase.php.
Comment #5
xjm(Merging "node system" and "node.module" components for 8.x; disregard.)
Comment #6
jhedstromassertNodeAccess()
is now part ofNodeTestBase
, which makes sense sinceWebTestBase
cannot necessarily assume the node module is enabled.