diff --git a/core/tests/Drupal/Tests/BrowserTestBase.php b/core/tests/Drupal/Tests/BrowserTestBase.php index 2bef4fa092..d9618b70bd 100644 --- a/core/tests/Drupal/Tests/BrowserTestBase.php +++ b/core/tests/Drupal/Tests/BrowserTestBase.php @@ -314,7 +314,7 @@ protected function initMink() { $client = $this->container->get('http_client_factory')->fromOptions([ 'timeout' => NULL, 'verify' => FALSE, - 'cookies' => $cookies ?: FALSE, + 'cookies' => isset($cookies) ? $cookies : FALSE, ]); // Inject a Guzzle middleware to generate debug output for every request