public function BrowserTestBaseTest::testInvalidLinkNotExistsExact in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php \Drupal\FunctionalTests\BrowserTestBaseTest::testInvalidLinkNotExistsExact()
Tests linkNotExistsExact() functionality fail.
See also
\Drupal\Tests\WebAssert::linkNotExistsExact()
File
- core/
tests/ Drupal/ FunctionalTests/ BrowserTestBaseTest.php, line 234
Class
- BrowserTestBaseTest
- Tests BrowserTestBase functionality.
Namespace
Drupal\FunctionalTestsCode
public function testInvalidLinkNotExistsExact() {
$this
->drupalGet('test-pipe-char');
$this
->expectException(ExpectationException::class);
$this
->expectExceptionMessage('Link with label foo|bar|baz not found');
$this
->assertSession()
->linkNotExistsExact('foo|bar|baz');
}