You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since Mink 1.11 this no longer works as $value is typed as string, although getResponseHeader() can still return NULL:
public function responseHeaderEquals(string $name, string $value)
{
$actual = $this->session->getResponseHeader($name);
There appears to be no supported way to check that a header does not exist. We had in fact already added responseHeader[Not]Exists() helper methods to Drupal, but after upgrading to Mink 1.11 we found we had not converted all cases to use them.
The text was updated successfully, but these errors were encountered:
@andypost I think this was working by luck because getResponseHeader returns null when the header is missing (so this was testing that the header is missing by comparing it to null). But this was never intended to work.
Previously in Drupal we used
responseHeaderEquals()
to check for the non-existence of a header by looking for NULL:Since Mink 1.11 this no longer works as
$value
is typed as string, althoughgetResponseHeader()
can still return NULL:There appears to be no supported way to check that a header does not exist. We had in fact already added
responseHeader[Not]Exists()
helper methods to Drupal, but after upgrading to Mink 1.11 we found we had not converted all cases to use them.The text was updated successfully, but these errors were encountered: