diff --git a/core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php b/core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php index ebd4850e56248a29f337a0960593379292cff5ed..6ca9f850a23523b46992d19b7f888f4c52b7c15f 100644 --- a/core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php +++ b/core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php @@ -420,7 +420,7 @@ abstract public function assertSession($name = NULL); * @deprecated Scheduled for removal in Drupal 9.0.0. * Use $this->assertSession()->buildXPathQuery() instead. */ - public function buildXPathQuery($xpath, array $args = array()) { + protected function buildXPathQuery($xpath, array $args = array()) { return $this->assertSession()->buildXPathQuery($xpath, $args); }