function UserEditTest::testUserWellKnownChangePasswordAnon
Tests well known change password route returns 403 to anonymous user.
File
-
core/
modules/ user/ tests/ src/ Functional/ UserEditTest.php, line 192
Class
- UserEditTest
- Tests user edit page.
Namespace
Drupal\Tests\user\FunctionalCode
public function testUserWellKnownChangePasswordAnon() : void {
$this->drupalGet('.well-known/change-password');
$this->assertSession()
->statusCodeEquals(403);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.