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
AssertCustomerForgotPasswordSuccessMessage.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Customer\Test\Constraint
;
8
9
use
Magento\Customer\Test\Fixture\Customer
;
10
use Magento\Mtf\Constraint\AbstractConstraint;
11
use Magento\Customer\Test\Page\CustomerAccountLogin;
12
16
class
AssertCustomerForgotPasswordSuccessMessage
extends
AbstractConstraint
17
{
18
const
SUCCESS_MESSAGE
=
19
'If there is an account associated with %s you will receive an email with a link to reset your password.'
;
20
28
public
function
processAssert
(
29
CustomerAccountLogin $customerLogin,
30
Customer
$customer
31
) {
32
\PHPUnit\Framework\Assert::assertEquals(
33
sprintf(self::SUCCESS_MESSAGE,
$customer
->getEmail()),
34
$customerLogin->getMessages()->getSuccessMessage(),
35
'Wrong forgot password message is displayed.'
36
);
37
}
38
44
public
function
toString
()
45
{
46
return
'Customer forgot password message is present on customer account forgot password page.'
;
47
}
48
}
Magento\Customer\Test\Constraint\AssertCustomerForgotPasswordSuccessMessage\toString
toString()
Definition:
AssertCustomerForgotPasswordSuccessMessage.php:44
$customer
$customer
Definition:
customers.php:11
Magento\Customer\Test\Constraint
Definition:
AssertAdditionalAddressCreatedFrontend.php:7
Magento\Customer\Test\Constraint\AssertCustomerForgotPasswordSuccessMessage\SUCCESS_MESSAGE
const SUCCESS_MESSAGE
Definition:
AssertCustomerForgotPasswordSuccessMessage.php:18
Magento\Customer\Test\Constraint\AssertCustomerForgotPasswordSuccessMessage
Definition:
AssertCustomerForgotPasswordSuccessMessage.php:16
Magento\Customer\Test\Fixture\Customer
Definition:
Address.php:7
Magento\Customer\Test\Constraint\AssertCustomerForgotPasswordSuccessMessage\processAssert
processAssert(CustomerAccountLogin $customerLogin, Customer $customer)
Definition:
AssertCustomerForgotPasswordSuccessMessage.php:28