Drupal 8  8.0.2
UserAccountFormFieldsTest Class Reference
Inheritance diagram for UserAccountFormFieldsTest:

Public Member Functions

 testInstallConfigureForm ()
 
 testUserRegistrationForm ()
 
 testUserEditForm ()
 

Static Public Attributes

static $modules = array('system', 'user', 'field')
 

Protected Member Functions

 assertFieldOrder (array $elements)
 
 buildAccountForm ($operation)
 

Detailed Description

Verifies that the field order in user account forms is compatible with password managers of web browsers.

user

Member Function Documentation

assertFieldOrder ( array  $elements)
protected

Asserts that the 'name' form element is directly before the 'pass' element.

Parameters
array$elementsA form array section that contains the user account form elements.

Referenced by UserAccountFormFieldsTest\testInstallConfigureForm(), UserAccountFormFieldsTest\testUserEditForm(), and UserAccountFormFieldsTest\testUserRegistrationForm().

Here is the caller graph for this function:

buildAccountForm (   $operation)
protected

Builds the user account form for a given operation.

Parameters
string$operationThe entity operation; one of 'register' or 'default'.
Returns
array The form array.

Referenced by UserAccountFormFieldsTest\testUserEditForm(), and UserAccountFormFieldsTest\testUserRegistrationForm().

Here is the caller graph for this function:

testInstallConfigureForm ( )

Tests the root user account form section in the "Configure site" form.

References UserAccountFormFieldsTest\assertFieldOrder().

Here is the call graph for this function:

testUserEditForm ( )

Tests the user edit form.

References UserAccountFormFieldsTest\assertFieldOrder(), UserAccountFormFieldsTest\buildAccountForm(), and Drupal\service().

Here is the call graph for this function:

testUserRegistrationForm ( )

Tests the user registration form.

References UserAccountFormFieldsTest\assertFieldOrder(), UserAccountFormFieldsTest\buildAccountForm(), and Drupal\config().

Here is the call graph for this function:


The documentation for this class was generated from the following file: