diff --git a/core/modules/rest/lib/Drupal/rest/Tests/AuthTest.php b/core/modules/rest/lib/Drupal/rest/Tests/AuthTest.php index 6e637c4..4d1fc8a 100644 --- a/core/modules/rest/lib/Drupal/rest/Tests/AuthTest.php +++ b/core/modules/rest/lib/Drupal/rest/Tests/AuthTest.php @@ -61,8 +61,7 @@ public function testRead() { // Try to read the resource with session cookie authentication, which is // not enabled and should not work. $response = $this->httpRequest('entity/' . $entity_type . '/' . $entity->id(), 'GET', NULL, $this->defaultMimeType); - $this->assertResponse('403', 'HTTP response code is 403 when the request is authenticated but not authorized.'); - $this->drupalLogout(); + $this->assertResponse('401', 'HTTP response code is 401 when the request is authenticated but not authorized.'); // Now read it with the Basic authentication which is enabled and should // work.