Change record status: 
Project: 
Introduced in branch: 
11.1.x
Introduced in version: 
11.1.0
Description: 

The various behat/mink* dependencies have tightened their typing.
To prevent test failures Drupal will provide a temporary BC-layer, but will warn about deprecations.
This BC layer will be removed from Drupal 12.

As a result calling following method Drupal\Tests\UiHelperTrait::drupalGet() with stated arguments are now deprecated:

  • Drupal\Tests\UiHelperTrait::drupalGet('toolbar/subtrees/' . $subtrees_hash, ['query' => [MainContentViewSubscriber::WRAPPER_FORMAT => 'drupal_ajax']], ['X-Requested-With: XMLHttpRequest'])

    where ['X-Requested-With: XMLHttpRequest'] as the $headers argument, where X-Requested-With: as theheader name argument

  • pass arguments to headers like this: $headers = ['X-Requested-With' => 'XMLHttpRequest']

Impacts: 
Module developers