function UserEditTest::testUserWellKnownChangePasswordAuth
Same name in other branches
- 9 core/modules/user/tests/src/Functional/UserEditTest.php \Drupal\Tests\user\Functional\UserEditTest::testUserWellKnownChangePasswordAuth()
- 8.9.x core/modules/user/tests/src/Functional/UserEditTest.php \Drupal\Tests\user\Functional\UserEditTest::testUserWellKnownChangePasswordAuth()
- 10 core/modules/user/tests/src/Functional/UserEditTest.php \Drupal\Tests\user\Functional\UserEditTest::testUserWellKnownChangePasswordAuth()
Tests well known change password route redirects to user edit form.
File
-
core/
modules/ user/ tests/ src/ Functional/ UserEditTest.php, line 182
Class
- UserEditTest
- Tests user edit page.
Namespace
Drupal\Tests\user\FunctionalCode
public function testUserWellKnownChangePasswordAuth() : void {
$account = $this->drupalCreateUser([]);
$this->drupalLogin($account);
$this->drupalGet('.well-known/change-password');
$this->assertSession()
->addressEquals("user/" . $account->id() . "/edit");
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.