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
Security
Test
Constraint
AssertUserPasswordResetFailed.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Security\Test\Constraint
;
8
9
use Magento\Mtf\Constraint\AbstractConstraint;
10
use
Magento\Backend\Test\Page\AdminAuthLogin
;
11
15
class
AssertUserPasswordResetFailed
extends
AbstractConstraint
16
{
17
const
TOO_MANY_RESET_REQUESTS_MESSAGE
=
18
'We received too many requests for password resets. '
19
.
'Please wait and try again later or contact
[email protected]
.'
;
20
27
public
function
processAssert
(
AdminAuthLogin
$adminAuth)
28
{
29
\PHPUnit\Framework\Assert::assertEquals(
30
self::TOO_MANY_RESET_REQUESTS_MESSAGE,
31
$adminAuth->
getMessagesBlock
()->getErrorMessage(),
32
'Wrong user reset password failed message is displayed.'
33
);
34
}
35
41
public
function
toString
()
42
{
43
return
'User reset password failed message is present on user login page.'
;
44
}
45
}
Magento\Security\Test\Constraint\AssertUserPasswordResetFailed
Definition:
AssertUserPasswordResetFailed.php:15
Magento\Security\Test\Constraint
Definition:
AssertCustomerEmailChanged.php:7
Magento\Security\Test\Constraint\AssertUserPasswordResetFailed\TOO_MANY_RESET_REQUESTS_MESSAGE
const TOO_MANY_RESET_REQUESTS_MESSAGE
Definition:
AssertUserPasswordResetFailed.php:17
Magento\Security\Test\Constraint\AssertUserPasswordResetFailed\toString
toString()
Definition:
AssertUserPasswordResetFailed.php:41
Magento\Backend\Test\Page\AdminAuthLogin\getMessagesBlock
getMessagesBlock()
Definition:
AdminAuthLogin.php:80
Magento\Security\Test\Constraint\AssertUserPasswordResetFailed\processAssert
processAssert(AdminAuthLogin $adminAuth)
Definition:
AssertUserPasswordResetFailed.php:27
Magento\Backend\Test\Page\AdminAuthLogin
Definition:
AdminAuthLogin.php:15