function UserPasswordResetTest::testResetFormHasAutocompleteAttribute
Same name in other branches
- 11.x core/modules/user/tests/src/Functional/UserPasswordResetTest.php \Drupal\Tests\user\Functional\UserPasswordResetTest::testResetFormHasAutocompleteAttribute()
Test the autocomplete attribute is present.
File
-
core/
modules/ user/ tests/ src/ Functional/ UserPasswordResetTest.php, line 650
Class
- UserPasswordResetTest
- Ensure that password reset methods work as expected.
Namespace
Drupal\Tests\user\FunctionalCode
public function testResetFormHasAutocompleteAttribute() : void {
$this->drupalGet('user/password');
$field = $this->getSession()
->getPage()
->findField('name');
$this->assertEquals('username', $field->getAttribute('autocomplete'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.