You are here

protected function WebformAssertLegacyTrait::assertNoLink in Webform 6.x

Same name and namespace in other branches
  1. 8.5 tests/src/Traits/WebformAssertLegacyTrait.php \Drupal\Tests\webform\Traits\WebformAssertLegacyTrait::assertNoLink()

Passes if a link with the specified label is not found.

Parameters

string|\Drupal\Component\Render\MarkupInterface $label: Text between the anchor tags.

7 calls to WebformAssertLegacyTrait::assertNoLink()
WebformAccessTest::testWebformAccess in modules/webform_access/tests/src/Functional/WebformAccessTest.php
Tests webform access.
WebformAccessTest::testWebformAdministratorAccess in modules/webform_access/tests/src/Functional/WebformAccessTest.php
Tests webform administrator access.
WebformEntityPrintFunctionalTest::testEntityPrint in modules/webform_entity_print/tests/src/Functional/WebformEntityPrintFunctionalTest.php
Test entity print.
WebformEntityTranslationTest::testWebformTranslate in tests/src/Functional/WebformEntityTranslationTest.php
Tests webform translate.
WebformHandlerExcludedTest::testExcludeHandlers in tests/src/Functional/Handler/WebformHandlerExcludedTest.php
Test excluded handlers.

... See full list

File

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

Class

WebformAssertLegacyTrait
Provides convenience methods for assertions in browser tests.

Namespace

Drupal\Tests\webform\Traits

Code

protected function assertNoLink($label) {
  return $this
    ->assertSession()
    ->linkNotExists($label);
}