diff --git a/core/tests/Drupal/Tests/Listeners/DeprecationListenerTrait.php b/core/tests/Drupal/Tests/Listeners/DeprecationListenerTrait.php index 00f6796baba4eacc7159f0cc462e82c39b1cbe17..cd3a73d7f515247207abb4cc392dbe4ef0c9bd79 100644 --- a/core/tests/Drupal/Tests/Listeners/DeprecationListenerTrait.php +++ b/core/tests/Drupal/Tests/Listeners/DeprecationListenerTrait.php @@ -135,7 +135,6 @@ public static function getSkippedDeprecations() { 'Using UTF-8 route patterns without setting the "utf8" option is deprecated since Symfony 3.2 and will throw a LogicException in 4.0. Turn on the "utf8" route option for pattern "/somewhere/{item}/over/the/קainbow".', 'Using UTF-8 route patterns without setting the "utf8" option is deprecated since Symfony 3.2 and will throw a LogicException in 4.0. Turn on the "utf8" route option for pattern "/place/meφω".', 'Using UTF-8 route patterns without setting the "utf8" option is deprecated since Symfony 3.2 and will throw a LogicException in 4.0. Turn on the "utf8" route option for pattern "/PLACE/meφω".', - 'Passing a Session object to the ExpectationException constructor is deprecated as of Mink 1.7. Pass the driver instead.', 'The Drupal\editor\Plugin\EditorBase::settingsFormValidate method is deprecated since version 8.3.x and will be removed in 9.0.0.', 'CckFile is deprecated in Drupal 8.3.x and will be be removed before Drupal 9.0.x. Use \Drupal\file\Plugin\migrate\process\d6\FieldFile instead.', 'The Drupal\migrate\Plugin\migrate\process\Migration is deprecated in Drupal 8.4.0 and will be removed before Drupal 9.0.0. Instead, use Drupal\migrate\Plugin\migrate\process\MigrationLookup', diff --git a/core/tests/Drupal/Tests/WebAssert.php b/core/tests/Drupal/Tests/WebAssert.php index 04aefc83505c351795d4624ee244438166748d9e..f901117e50f5cfbe4119a3c59691eaec55012a88 100644 --- a/core/tests/Drupal/Tests/WebAssert.php +++ b/core/tests/Drupal/Tests/WebAssert.php @@ -202,7 +202,7 @@ public function optionNotExists($select, $option, TraversableElement $container public function titleEquals($expected_title) { $title_element = $this->session->getPage()->find('css', 'title'); if (!$title_element) { - throw new ExpectationException('No title element found on the page', $this->session); + throw new ExpectationException('No title element found on the page', $this->session->getDriver()); } $actual_title = $title_element->getText(); $this->assert($expected_title === $actual_title, 'Title found');