public function AssertLegacyTraitTest::testAssertLinkByHref in Drupal 9
@covers ::assertLinkByHref
File
- core/
tests/ Drupal/ Tests/ Core/ Assert/ AssertLegacyTraitTest.php, line 281
Class
- AssertLegacyTraitTest
- @coversDefaultClass \Drupal\FunctionalTests\AssertLegacyTrait @group Assert @group legacy
Namespace
Drupal\Tests\Core\AssertCode
public function testAssertLinkByHref() {
$this
->expectDeprecation('AssertLegacyTrait::assertLinkByHref() is deprecated in drupal:8.2.0 and is removed from drupal:10.0.0. Use $this->assertSession()->linkByHrefExists() instead. See https://www.drupal.org/node/3129738');
$this->webAssert
->linkByHrefExists('boo', 0)
->shouldBeCalled();
$this
->assertLinkByHref('boo', 0);
}