You are here

protected function WebformAssertLegacyTrait::assertNoLinkByHref in Webform 6.x

Same name and namespace in other branches
  1. 8.5 tests/src/Traits/WebformAssertLegacyTrait.php \Drupal\Tests\webform\Traits\WebformAssertLegacyTrait::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.

3 calls to WebformAssertLegacyTrait::assertNoLinkByHref()
WebformAccessSubmissionPermissionsTest::testPermissions in tests/src/Functional/Access/WebformAccessSubmissionPermissionsTest.php
Test webform submission access permissions.
WebformNodeReferencesTest::testReferences in modules/webform_node/tests/src/Functional/WebformNodeReferencesTest.php
Tests webform node references.
WebformVariantOperationsTest::testVariantOperations in tests/src/Functional/Variant/WebformVariantOperationsTest.php
Test variant operation.

File

tests/src/Traits/WebformAssertLegacyTrait.php, line 383

Class

WebformAssertLegacyTrait
Provides convenience methods for assertions in browser tests.

Namespace

Drupal\Tests\webform\Traits

Code

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