By pooja_sharma on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
11.1.x
Introduced in version:
11.1.0
Issue links:
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, whereX-Requested-With:as theheader nameargument
pass arguments to headers like this: $headers = ['X-Requested-With' => 'XMLHttpRequest']
Impacts:
Module developers