We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2daa8fe commit 54e47b8Copy full SHA for 54e47b8
tests/Drupal/Tests/BrowserTestBase.php
@@ -239,6 +239,11 @@ protected function initMink() {
239
]);
240
$session = new Session($driver, $selectors_handler);
241
$cookies = $this->extractCookiesFromRequest(\Drupal::request());
242
+ // If there are any cookies, then first start the session before setting
243
+ // them.
244
+ if ($cookies && !$session->isStarted()) {
245
+ $session->start();
246
+ }
247
foreach ($cookies as $cookie_name => $values) {
248
foreach ($values as $value) {
249
$session->setCookie($cookie_name, $value);
0 commit comments