function WebAssertTest::testInvalidLinkByHrefNotExistsFull
Tests LinkByHrefNotExists() functionality fail full match.
@legacy-covers ::linkByHrefNotExists
File
- 
              core/tests/ Drupal/ Tests/ Core/ Test/ WebAssertTest.php, line 299 
Class
- WebAssertTest
- Tests WebAssert functionality.
Namespace
Drupal\Tests\Core\TestCode
public function testInvalidLinkByHrefNotExistsFull() : void {
  $this->visit('', '<a href="/user/login">Log in</a><a href="/user/register">Register</a>');
  $this->expectException(ExpectationException::class);
  $this->assertSession()
    ->linkByHrefNotExists('/user/login');
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
