diff -u b/core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php b/core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php --- b/core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php +++ b/core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php @@ -376,7 +376,7 @@ * Throws an exception on use. */ public function statusCodeEquals($code) { - throw new UnsupportedDriverActionException('The use of statusCodeEquals() is not available in a functional JavaScript test.'); + throw new UnsupportedDriverActionException('The use of statusCodeEquals() is not available in a functional JavaScript test.', $this->session->getDriver()); } /** @@ -389,7 +389,7 @@ * Throws an exception on use. */ public function statusCodeNotEquals($code) { - throw new UnsupportedDriverActionException('The use of statusCodeNotEquals() is not available in a functional JavaScript test.'); + throw new UnsupportedDriverActionException('The use of statusCodeNotEquals() is not available in a functional JavaScript test.', $this->session->getDriver()); } /** @@ -404,7 +404,7 @@ * Throws an exception on use. */ public function responseHeaderEquals($name, $value) { - throw new UnsupportedDriverActionException('The use of responseHeaderEquals() is not available in a functional JavaScript test.'); + throw new UnsupportedDriverActionException('The use of responseHeaderEquals() is not available in a functional JavaScript test.', $this->session->getDriver()); } /** @@ -419,7 +419,7 @@ * Throws an exception on use. */ public function responseHeaderNotEquals($name, $value) { - throw new UnsupportedDriverActionException('The use of responseHeaderNotEquals() is not available in a functional JavaScript test.'); + throw new UnsupportedDriverActionException('The use of responseHeaderNotEquals() is not available in a functional JavaScript test.', $this->session->getDriver()); } }