diff --git a/core/modules/rest/src/Tests/DeleteTest.php b/core/modules/rest/src/Tests/DeleteTest.php index c292a40..7de3fb4 100644 --- a/core/modules/rest/src/Tests/DeleteTest.php +++ b/core/modules/rest/src/Tests/DeleteTest.php @@ -39,7 +39,7 @@ public function testDelete() { $entity = $this->entityCreate($entity_type); $entity->save(); // Try first to delete over REST API without the CSRF token. - $this->httpRequest($entity->urlInfo(), 'DELETE', TRUE); + $this->httpRequest($entity->urlInfo(), 'DELETE', NULL, NULL, TRUE); $this->assertResponse(403, 'X-CSRF-Token request header is missing'); // Delete it over the REST API. $response = $this->httpRequest($entity->urlInfo(), 'DELETE');