Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
magento2-base
dev
tests
functional
tests
app
Magento
Customer
Test
Constraint
AssertChangePasswordFailMessage.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Customer\Test\Constraint
;
8
9
use Magento\Customer\Test\Page\CustomerAccountEdit;
10
use Magento\Mtf\Constraint\AbstractConstraint;
11
16
class
AssertChangePasswordFailMessage
extends
AbstractConstraint
17
{
21
const
FAIL_MESSAGE
=
"The password doesn't match this account. Verify the password and try again."
;
22
29
public
function
processAssert
(CustomerAccountEdit $customerAccountEdit)
30
{
31
\PHPUnit\Framework\Assert::assertEquals(
32
self::FAIL_MESSAGE,
33
$customerAccountEdit->getMessages()->getErrorMessage()
34
);
35
}
36
42
public
function
toString
()
43
{
44
return
'Fail message is displayed.'
;
45
}
46
}
Magento\Customer\Test\Constraint\AssertChangePasswordFailMessage\toString
toString()
Definition:
AssertChangePasswordFailMessage.php:42
Magento\Customer\Test\Constraint
Definition:
AssertAdditionalAddressCreatedFrontend.php:7
Magento\Customer\Test\Constraint\AssertChangePasswordFailMessage\processAssert
processAssert(CustomerAccountEdit $customerAccountEdit)
Definition:
AssertChangePasswordFailMessage.php:29
Magento\Customer\Test\Constraint\AssertChangePasswordFailMessage
Definition:
AssertChangePasswordFailMessage.php:16
Magento\Customer\Test\Constraint\AssertChangePasswordFailMessage\FAIL_MESSAGE
const FAIL_MESSAGE
Definition:
AssertChangePasswordFailMessage.php:21