diff --git a/core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php b/core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php index 878c7c7..1f8bba6 100644 --- a/core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php +++ b/core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php @@ -145,7 +145,7 @@ protected function assertTitle($expected_title) { * @param int $index * Link position counting from zero. */ - public function assertLink($label, $index = 0) { + protected function assertLink($label, $index = 0) { return $this->assertSession()->linkExists($label, $index); }