Class Register Register new customer on Frontend
Definition at line 17 of file Register.php.
◆ dataMapping()
dataMapping |
( |
array |
$fields = null , |
|
|
|
$parent = null |
|
) |
| |
|
protected |
Fixture mapping.
- Parameters
-
array | null | $fields | |
string | null | $parent | |
- Returns
- array
Definition at line 54 of file Register.php.
56 if (isset(
$fields[
'website_id'])) {
59 return parent::dataMapping(
$fields, $parent);
◆ getPasswordConfirmationError()
getPasswordConfirmationError |
( |
| ) |
|
Get password confirmation error on new customer registration form.
- Returns
- string
Definition at line 94 of file Register.php.
96 return $this->_rootElement->find($this->passwordConfirmationError, Locator::SELECTOR_CSS)->getText();
◆ getPasswordError()
Get password error on new customer registration form.
- Returns
- string
Definition at line 83 of file Register.php.
85 return $this->_rootElement->find($this->passwordError, Locator::SELECTOR_CSS)->getText();
◆ registerCustomer()
registerCustomer |
( |
FixtureInterface |
$fixture, |
|
|
|
$address = null |
|
) |
| |
Create new customer account and fill billing address if it exists
- Parameters
-
FixtureInterface | $fixture | |
| $address | |
Definition at line 68 of file Register.php.
70 $this->fill($fixture);
74 $this->_rootElement->find($this->submit, Locator::SELECTOR_CSS)->click();
◆ $customerAttribute
$customerAttribute = "[name='%s']" |
|
protected |
◆ $passwordConfirmationError
$passwordConfirmationError = "#password-confirmation-error" |
|
protected |
◆ $passwordError
$passwordError = "#password-error" |
|
protected |
◆ $submit
$submit = '.action.submit' |
|
protected |
The documentation for this class was generated from the following file:
- vendor/magento/magento2-base/dev/tests/functional/tests/app/Magento/Customer/Test/Block/Form/Register.php