You are here

protected function AssertLegacyTrait::assertNoLinkByHref in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php \Drupal\FunctionalTests\AssertLegacyTrait::assertNoLinkByHref()

Passes if a link containing a given href (part) is not found.

Parameters

string $href: The full or partial value of the 'href' attribute of the anchor tag.

Deprecated in drupal:8.2.0 and is removed from drupal:10.0.0. Use $this->assertSession()->linkByHrefNotExists() instead.

42 calls to AssertLegacyTrait::assertNoLinkByHref()
AdminTest::testAdminPages in core/modules/system/tests/src/Functional/System/AdminTest.php
Tests output on administrative listing pages.
BlockDemoTest::testBlockDemo in core/modules/block/tests/src/Functional/BlockDemoTest.php
Check for the accessibility of the admin block demo page.
CommentTranslationUITest::testTranslateLinkCommentAdminPage in core/modules/comment/tests/src/Functional/CommentTranslationUITest.php
Tests translate link on comment content admin page.
ConfigEntityStatusUITest::testCRUD in core/modules/config/tests/src/Functional/ConfigEntityStatusUITest.php
Tests status operations.
ConfigEntityTest::testCRUDUI in core/modules/config/tests/src/Functional/ConfigEntityTest.php
Tests CRUD operations through the UI.

... See full list

File

core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php, line 402

Class

AssertLegacyTrait
Provides convenience methods for assertions in browser tests.

Namespace

Drupal\FunctionalTests

Code

protected function assertNoLinkByHref($href) {
  $this
    ->assertSession()
    ->linkByHrefNotExists($href);
}