function BrowserTestBaseTest::testPipeCharInLocator
Same name in other branches
- 8.9.x 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\FunctionalTestsCode
public function testPipeCharInLocator() {
$this->drupalGet('test-pipe-char');
$this->assertSession()
->linkExists('foo|bar|baz');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.