Testing at 9.1 now gives the following new deprecation

Calling Drupal\Tests\WebAssert::responseHeaderEquals with more than two arguments is deprecated in drupal:9.1.0 and will throw an \InvalidArgumentException in drupal:10.0.0. See https://www.drupal.org/node/3162537

class = Drupal\Tests\scheduler\Functional\SchedulerMetaInformationTest
method = testMetaInformation
triggering_file = /home/travis/build/jonathan1055/drupal/core/tests/Drupal/Tests/WebAssert.php
    1x in DrupalListener::endTest from Drupal\Tests\Listeners

Change Record https://www.drupal.org/node/3162537

This can also been seen in the patch test https://www.drupal.org/pift-ci-job/1804427 on #3035104-34: [meta] Remove deprecated code flagged by @trigger_error messages for Drupal 9 compatibility

Comments

jonathan1055 created an issue. See original summary.

jonathan1055’s picture

Status: Active » Needs review
StatusFileSize
new1.35 KB

Patch to fix the assert, and also show all deprecations. This will fail at 9.1 for all the other deprecations, but should show that this one is fixed.

  • jonathan1055 committed 4382412 on 8.x-1.x
    Issue #3167885 by jonathan1055: [9.1] Calling WebAssert::...
jonathan1055’s picture

Status: Needs review » Fixed

Good. The 9.1 test did not have this deprecation. Fixed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.