diff --git a/core/modules/rest/src/Tests/RESTTestBase.php b/core/modules/rest/src/Tests/RESTTestBase.php index ba78428..3d971ff 100644 --- a/core/modules/rest/src/Tests/RESTTestBase.php +++ b/core/modules/rest/src/Tests/RESTTestBase.php @@ -72,7 +72,6 @@ protected function setUp() { protected function cookieCurlOptions() { - $cookies = []; foreach ($this->cookies as $key => $cookie) { $cookies[] = $key . '=' . $cookie['value']; } @@ -108,7 +107,6 @@ protected function cookieCurlOptions() { } $curl_options[CURLOPT_COOKIE] .= implode('; ', $cookies) . ';'; } - debug($curl_options); return $curl_options; } @@ -167,7 +165,7 @@ protected function httpRequest($url, $method, $body = NULL, $mime_type = NULL) { $options += [ 'headers' => [ 'Content-Type' => $mime_type, - 'X-CSRF-Token' => $token + 'X-CSRF-Token' => $token, ], 'body' => $body, ]; @@ -178,7 +176,7 @@ protected function httpRequest($url, $method, $body = NULL, $mime_type = NULL) { $options += [ 'headers' => [ 'Content-Type' => $mime_type, - 'X-CSRF-Token' => $token + 'X-CSRF-Token' => $token, ], 'body' => $body, ]; @@ -189,7 +187,7 @@ protected function httpRequest($url, $method, $body = NULL, $mime_type = NULL) { $options += [ 'headers' => [ 'Content-Type' => $mime_type, - 'X-CSRF-Token' => $token + 'X-CSRF-Token' => $token, ], 'body' => $body, ]; @@ -199,7 +197,7 @@ protected function httpRequest($url, $method, $body = NULL, $mime_type = NULL) { case 'DELETE': $options += [ 'headers' => [ - 'X-CSRF-Token' => $token + 'X-CSRF-Token' => $token, ], ]; $response = $client->delete($url, $options);