Skip to content
Snippets Groups Projects
Commit 8a65d1f5 authored by catch's avatar catch
Browse files

Issue #3318988 by andypost, longwave, quietone: Finish deprecating status code...

Issue #3318988 by andypost, longwave, quietone: Finish deprecating status code and header assertions in JS tests

(cherry picked from commit 902eab09)
parent 5f2858c5
No related branches found
No related tags found
2 merge requests!11185Issue #3477324 by andypost, alexpott: Fix usage of str_getcsv() and fgetcsv() for PHP 8.4,!9944Issue #3483353: Consider making the createCopy config action optionally fail...
Pipeline #215310 passed
Pipeline: drupal

#215312

    ...@@ -16,7 +16,7 @@ class WebDriverWebAssert extends JSWebAssert { ...@@ -16,7 +16,7 @@ class WebDriverWebAssert extends JSWebAssert {
    * The status code. * The status code.
    */ */
    public function statusCodeEquals($code) { public function statusCodeEquals($code) {
    @trigger_error('Support for statusCodeEquals is to be dropped from JavaScript tests. See https://www.drupal.org/node/2857562.'); @trigger_error('WebDriverWebAssert::statusCodeEquals() is deprecated in drupal:8.4.0 and is removed in drupal:12.0.0. See https://www.drupal.org/node/2857562', E_USER_DEPRECATED);
    parent::statusCodeEquals($code); parent::statusCodeEquals($code);
    } }
    ...@@ -27,7 +27,7 @@ public function statusCodeEquals($code) { ...@@ -27,7 +27,7 @@ public function statusCodeEquals($code) {
    * The status code. * The status code.
    */ */
    public function statusCodeNotEquals($code) { public function statusCodeNotEquals($code) {
    @trigger_error('Support for statusCodeNotEquals is to be dropped from JavaScript tests. See https://www.drupal.org/node/2857562.'); @trigger_error('WebDriverWebAssert::statusCodeNotEquals() is deprecated in drupal:8.4.0 and is removed in drupal:12.0.0. See https://www.drupal.org/node/2857562', E_USER_DEPRECATED);
    parent::statusCodeNotEquals($code); parent::statusCodeNotEquals($code);
    } }
    ...@@ -40,7 +40,7 @@ public function statusCodeNotEquals($code) { ...@@ -40,7 +40,7 @@ public function statusCodeNotEquals($code) {
    * The value to check the header against. * The value to check the header against.
    */ */
    public function responseHeaderEquals($name, $value) { public function responseHeaderEquals($name, $value) {
    @trigger_error('Support for responseHeaderEquals is to be dropped from JavaScript tests. See https://www.drupal.org/node/2857562.'); @trigger_error('WebDriverWebAssert::responseHeaderEquals() is deprecated in drupal:8.4.0 and is removed in drupal:12.0.0. See https://www.drupal.org/node/2857562', E_USER_DEPRECATED);
    parent::responseHeaderEquals($name, $value); parent::responseHeaderEquals($name, $value);
    } }
    ...@@ -53,7 +53,7 @@ public function responseHeaderEquals($name, $value) { ...@@ -53,7 +53,7 @@ public function responseHeaderEquals($name, $value) {
    * The value to check the header against. * The value to check the header against.
    */ */
    public function responseHeaderNotEquals($name, $value) { public function responseHeaderNotEquals($name, $value) {
    @trigger_error('Support for responseHeaderNotEquals is to be dropped from JavaScript tests. See https://www.drupal.org/node/2857562.'); @trigger_error('WebDriverWebAssert::responseHeaderNotEquals() is deprecated in drupal:8.4.0 and is removed in drupal:12.0.0. See https://www.drupal.org/node/2857562', E_USER_DEPRECATED);
    parent::responseHeaderNotEquals($name, $value); parent::responseHeaderNotEquals($name, $value);
    } }
    ...@@ -66,7 +66,7 @@ public function responseHeaderNotEquals($name, $value) { ...@@ -66,7 +66,7 @@ public function responseHeaderNotEquals($name, $value) {
    * The value to check the header against. * The value to check the header against.
    */ */
    public function responseHeaderContains($name, $value) { public function responseHeaderContains($name, $value) {
    @trigger_error('Support for responseHeaderContains is to be dropped from JavaScript tests. See https://www.drupal.org/node/2857562.'); @trigger_error('WebDriverWebAssert::responseHeaderContains() is deprecated in drupal:8.4.0 and is removed in drupal:12.0.0. See https://www.drupal.org/node/2857562', E_USER_DEPRECATED);
    parent::responseHeaderContains($name, $value); parent::responseHeaderContains($name, $value);
    } }
    ...@@ -79,7 +79,7 @@ public function responseHeaderContains($name, $value) { ...@@ -79,7 +79,7 @@ public function responseHeaderContains($name, $value) {
    * The value to check the header against. * The value to check the header against.
    */ */
    public function responseHeaderNotContains($name, $value) { public function responseHeaderNotContains($name, $value) {
    @trigger_error('Support for responseHeaderNotContains is to be dropped from JavaScript tests. See https://www.drupal.org/node/2857562.'); @trigger_error('WebDriverWebAssert::responseHeaderNotContains() is deprecated in drupal:8.4.0 and is removed in drupal:12.0.0. See https://www.drupal.org/node/2857562', E_USER_DEPRECATED);
    parent::responseHeaderNotContains($name, $value); parent::responseHeaderNotContains($name, $value);
    } }
    ...@@ -92,7 +92,7 @@ public function responseHeaderNotContains($name, $value) { ...@@ -92,7 +92,7 @@ public function responseHeaderNotContains($name, $value) {
    * The value to check the header against. * The value to check the header against.
    */ */
    public function responseHeaderMatches($name, $regex) { public function responseHeaderMatches($name, $regex) {
    @trigger_error('Support for responseHeaderMatches is to be dropped from JavaScript tests. See https://www.drupal.org/node/2857562.'); @trigger_error('WebDriverWebAssert::responseHeaderMatches() is deprecated in drupal:8.4.0 and is removed in drupal:12.0.0. See https://www.drupal.org/node/2857562', E_USER_DEPRECATED);
    parent::responseHeaderMatches($name, $regex); parent::responseHeaderMatches($name, $regex);
    } }
    ...@@ -105,7 +105,7 @@ public function responseHeaderMatches($name, $regex) { ...@@ -105,7 +105,7 @@ public function responseHeaderMatches($name, $regex) {
    * The value to check the header against. * The value to check the header against.
    */ */
    public function responseHeaderNotMatches($name, $regex) { public function responseHeaderNotMatches($name, $regex) {
    @trigger_error('Support for responseHeaderNotMatches is to be dropped from JavaScript tests. See https://www.drupal.org/node/2857562.'); @trigger_error('WebDriverWebAssert::responseHeaderNotMatches() is deprecated in drupal:8.4.0 and is removed in drupal:12.0.0. See https://www.drupal.org/node/2857562', E_USER_DEPRECATED);
    parent::responseHeaderNotMatches($name, $regex); parent::responseHeaderNotMatches($name, $regex);
    } }
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment