only in patch2: unchanged: --- a/core/modules/user/src/Tests/UserAccountFormFieldsTest.php +++ b/core/modules/user/src/Tests/UserAccountFormFieldsTest.php @@ -88,7 +88,7 @@ function testUserEditForm() { $this->assertFieldOrder($form['account']); // Verify that autocomplete is off on all account fields. - foreach (array('mail', 'name', 'pass') as $key) { + foreach (array('mail', 'name', 'changepass') as $key) { $this->assertIdentical($form['account'][$key]['#attributes']['autocomplete'], 'off', "'$key' field: 'autocomplete' attribute is 'off'."); } } @@ -111,7 +111,7 @@ protected function assertFieldOrder(array $elements) { $name_weight = $element['#weight']; $this->assertTrue($element['#sorted'], "'name' field is #sorted."); } - elseif ($key === 'pass') { + elseif ($key === 'changepass') { $pass_index = $index; $pass_weight = $element['#weight']; $this->assertTrue($element['#sorted'], "'pass' field is #sorted.");