TypeError: Argument #2 passed to Behat\Mink\WebAssert::responseHeaderEquals() must be of type string, null given

Created on 16 February 2024, 4 months ago
Updated 31 May 2024, 28 days ago

Problem/Motivation

Running the tests (method testRedirects() of GlobalRedirectTest.php) causes a TypeError if behat/mink extension is v1.11.0 (currently the latest one).

vendor/bin/phpunit --filter testRedirects web/modules/contrib/redirect/tests/src/Functional/GlobalRedirectTest.php

TypeError: Behat\Mink\WebAssert::responseHeaderEquals(): Argument #2 ($value) must be of type string, null given, called in web/core/tests/Drupal/Tests/WebAssert.php on line 838

Proposed resolution

Drupal\Tests\WebAssert::responseHeaderEquals() can be replased with Drupal\Tests\WebAssert::responseHeaderDoesNotExist()

📌 Task
Status

Needs review

Version

1.0

Component

Code

Created by

🇧🇬Bulgaria rkostov

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024