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

Created on 16 February 2024, 9 months ago
Updated 10 August 2024, 3 months 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

Closed: duplicate

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.71.5 2024