diff -u b/core/modules/simpletest/src/WebTestBase.php b/core/modules/simpletest/src/WebTestBase.php --- b/core/modules/simpletest/src/WebTestBase.php +++ b/core/modules/simpletest/src/WebTestBase.php @@ -407,8 +407,8 @@ // Make a request to the logout page, and redirect to the user page, the // idea being if you were properly logged out you should be seeing a login // screen. - $this->assertResponse(200, 'User was logged out.'); $this->drupalPostForm('user/logout', [], t('Confirm'), ['query' => ['destination' => 'user/login']]); + $this->assertResponse(200, 'User was logged out.'); $pass = $this->assertField('name', 'Username field found.', 'Logout'); $pass = $pass && $this->assertField('pass', 'Password field found.', 'Logout'); diff -u b/core/modules/user/src/Controller/UserController.php b/core/modules/user/src/Controller/UserController.php --- b/core/modules/user/src/Controller/UserController.php +++ b/core/modules/user/src/Controller/UserController.php @@ -50,7 +50,7 @@ protected $logger; /** - * The srcrf token generator. + * The csrf token generator. * * @var \Drupal\Core\Access\CsrfTokenGenerator */ diff -u b/core/modules/user/tests/src/Functional/UserLogoutTest.php b/core/modules/user/tests/src/Functional/UserLogoutTest.php --- b/core/modules/user/tests/src/Functional/UserLogoutTest.php +++ b/core/modules/user/tests/src/Functional/UserLogoutTest.php @@ -44,7 +44,7 @@ $this->drupalGet('user'); $this->getSession()->getPage()->clickLink(t('Log out')); - // Make sure user legs logged out. + // Make sure user gets logged out. $this->drupalGet('user/login'); $this->assertSession()->fieldExists('name'); } only in patch2: unchanged: --- a/core/tests/Drupal/Tests/BrowserTestBase.php +++ b/core/tests/Drupal/Tests/BrowserTestBase.php @@ -797,7 +797,7 @@ protected function drupalLogout() { // idea being if you were properly logged out you should be seeing a login // screen. $assert_session = $this->assertSession(); - $this->drupalGet('user/logout', array('query' => array('destination' => 'user'))); + $this->drupalPostForm('user/logout', [], t('Confirm'), ['query' => ['destination' => 'user']]); $assert_session->statusCodeEquals(200); $assert_session->fieldExists('name'); $assert_session->fieldExists('pass');