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.
The Doc Block for core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php ::assertLinkByHref has an annotation for @deprecated that states Use $this->assertSession()->linkByHref() instead.
. It should state Use $this->assertSession()->linkByHrefExists() instead.
Comment | File | Size | Author |
---|---|---|---|
#2 | Correct_assertLinkByHref_documentation-2857580-2.patch | 699 bytes | vegantriathlete |
Comments
Comment #2
vegantriathletePatch attached!
Comment #3
markdorisonComment #4
lauriiiGood catch!
$this->assertSession()->linkByHref()
has never existed and there are no other references to this method in Drupal core.Committed 0101662 and pushed to 8.4.x. Since this only improves documentation, this could be considered to be backported to 8.3.x.
Comment #6
xjmAgreed, as a documentation bugfix, this can be backported. Thanks @lauriii and @vegantriathlete!
Comment #8
lauriiiThanks for confirming @xjm! Cherry picked and pushed to 8.3.x.