You are here

public function BrowserTestBaseTest::testLinkNotExistsExact in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php \Drupal\FunctionalTests\BrowserTestBaseTest::testLinkNotExistsExact()
  2. 9 core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php \Drupal\FunctionalTests\BrowserTestBaseTest::testLinkNotExistsExact()

Tests linkNotExistsExact() functionality.

See also

\Drupal\Tests\WebAssert::linkNotExistsExact()

File

core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php, line 233

Class

BrowserTestBaseTest
Tests BrowserTestBase functionality.

Namespace

Drupal\FunctionalTests

Code

public function testLinkNotExistsExact() {
  $this
    ->drupalGet('test-pipe-char');
  $this
    ->assertSession()
    ->linkNotExistsExact('foo|bar');
}