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 @@ -367,25 +367,23 @@ } /** - * The use of statusCodeEquals() is not available in a functional JavaScript test. + * The use of statusCodeEquals() is not available. * * @param int $code * - * @throws \Exception + * @throws \Behat\Mink\Exception\UnsupportedDriverActionException * Throws an exception on use. */ public function statusCodeEquals($code) { - $this->statusCodeNotEquals(3); - throw new UnsupportedDriverActionException('The use of statusCodeEquals() is not available in a functional JavaScript test.'); } /** - * The use of statusCodeNotEquals() is not available in a functional JavaScript test. + * The use of statusCodeNotEquals() is not available. * * @param int $code * - * @throws \Exception + * @throws \Behat\Mink\Exception\UnsupportedDriverActionException * Throws an exception on use. */ public function statusCodeNotEquals($code) { @@ -393,12 +391,12 @@ } /** - * The use of responseHeaderEquals() is not available in a functional JavaScript test. + * The use of responseHeaderEquals() is not available. * * @param string $name * @param string $value * - * @throws \Exception + * @throws \Behat\Mink\Exception\UnsupportedDriverActionException * Throws an exception on use. */ public function responseHeaderEquals($name, $value) { @@ -408,13 +406,14 @@ /** - * The use of responseHeaderNotEquals() is not available in a functional JavaScript test. + * The use of responseHeaderNotEquals() is not available. * * @param string $name * @param string $value * - * @throws \Exception + * @throws \Behat\Mink\Exception\UnsupportedDriverActionException * Throws an exception on use. */ public function responseHeaderNotEquals($name, $value) { throw new UnsupportedDriverActionException('The use of responseHeaderEquals() is not available in a functional JavaScript test.'); } + }