diff --git a/core/modules/rest/lib/Drupal/rest/Tests/AuthTest.php b/core/modules/rest/lib/Drupal/rest/Tests/AuthTest.php index 42a1123..0e155d7 100644 --- a/core/modules/rest/lib/Drupal/rest/Tests/AuthTest.php +++ b/core/modules/rest/lib/Drupal/rest/Tests/AuthTest.php @@ -24,7 +24,7 @@ class AuthTest extends RESTTestBase { /** * An entity corresponding to the testing resource. * - * @var \Drupal\Core\Entity\Entity + * @var \Drupal\entity\Entity */ protected $entity; @@ -87,13 +87,13 @@ public function testDisabledAuth() { } /** - * Test that auth results in a 200 response. + * Test that enabled auth results in a 200 response. */ public function testEnabledAuth() { - // Now read it with the Basic authentication which is enabled and should - // work. + // Try to read the resource with Basic authentication, which is enabled and + // should work. $this->basicAuthGet('entity/' . $this->entity->entityType() . '/' . $this->entity->id(), $this->account->getUsername(), $this->account->pass_raw); - $this->assertResponse('200', 'HTTP response code is 200 for successfuly authorized requests.'); + $this->assertResponse('200', 'HTTP response code is 200 for successfully authorized requests.'); $this->curlClose(); }