You are here

public function BrowserTestBaseTest::testPipeCharInLocator in Drupal 10

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

Tests linkExists() with pipe character (|) in locator.

See also

\Drupal\Tests\WebAssert::linkExists()

File

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

Class

BrowserTestBaseTest
Tests BrowserTestBase functionality.

Namespace

Drupal\FunctionalTests

Code

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