function AssertLegacyTrait::assertNoLink
Same name in other branches
- 9 core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php \Drupal\FunctionalTests\AssertLegacyTrait::assertNoLink()
Passes if a link with the specified label is not found.
Parameters
string|\Drupal\Component\Render\MarkupInterface $label: Text between the anchor tags.
Deprecated in drupal:8.2.0 and is removed from drupal:10.0.0. Use $this->assertSession()->linkNotExists() instead.
File
-
core/
tests/ Drupal/ FunctionalTests/ AssertLegacyTrait.php, line 374
Class
- AssertLegacyTrait
- Provides convenience methods for assertions in browser tests.
Namespace
Drupal\FunctionalTestsCode
protected function assertNoLink($label) {
return $this->assertSession()
->linkNotExists($label);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.