$this->
drupalGet('test-pipe-char'
);
$this->
assertSession()->
linkExists('foo|bar|baz'
);
} /**
* Tests linkExistsExact() functionality.
*
* @see \Drupal\Tests\WebAssert::linkExistsExact()
*/
public function testLinkExistsExact() { $this->
drupalGet('test-pipe-char'
);
$this->
assertSession()->
linkExistsExact('foo|bar|baz'
);
} /**
* Tests linkExistsExact() functionality fail.
*
* @see \Drupal\Tests\WebAssert::linkExistsExact()
*/
public function testInvalidLinkExistsExact() { $this->
drupalGet('test-pipe-char'
);
$this->
expectException(ExpectationException::
class);
$this->
expectExceptionMessage('Link with label foo|bar not found'
);