diff --git a/core/modules/system/src/Tests/Session/SessionAuthenticationTest.php b/core/modules/system/src/Tests/Session/SessionAuthenticationTest.php index 4a2b227..141142d 100644 --- a/core/modules/system/src/Tests/Session/SessionAuthenticationTest.php +++ b/core/modules/system/src/Tests/Session/SessionAuthenticationTest.php @@ -79,9 +79,9 @@ public function testSessionFromBasicAuthenticationDoesNotLeak() { } /** - * Checks that s session cookie is not saved with third party authentication. + * Tests that a session is not started automatically by basic authentication. */ - public function testOnlyCookieGetsACookie() { + public function testBasicAuthNoSession() { // A route that is authorized through basic_auth only, not cookie. $no_cookie_url = Url::fromRoute('session_test.get_session_basic_auth'); @@ -95,7 +95,7 @@ public function testOnlyCookieGetsACookie() { $this->assertResponse(200, 'The user is successfully authenticated using basic authentication.'); $this->assertNull($this->cookies, 'A route protected with basic authentication does not yield a cookie.'); - // On the other hand, authenticating using Cookie yields a cookie. + // On the other hand, authenticating using Cookie sets a cookie. $edit = ['name' => $this->user->getUsername(), 'pass' => $this->user->pass_raw]; $this->drupalPostForm($cookie_url, $edit, t('Log in')); $this->assertResponse(200, 'The user is successfully authenticated using cookie authentication.');