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
AssertPasswordIsNotSecureEnoughMessage.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Security\Test\Constraint
;
8
9
use Magento\Customer\Test\Page\CustomerAccountCreate;
10
use Magento\Mtf\Constraint\AbstractConstraint;
11
15
class
AssertPasswordIsNotSecureEnoughMessage
extends
AbstractConstraint
16
{
24
public
function
processAssert
(CustomerAccountCreate $registerPage)
25
{
26
$expectedErrorMessage =
'Minimum of different classes of characters in password is 3.'
.
27
' Classes of characters: Lower Case, Upper Case, Digits, Special Characters.'
;
28
$errorMessage = $registerPage->getRegisterForm()->getPasswordError();
29
\PHPUnit\Framework\Assert::assertEquals(
30
$expectedErrorMessage,
31
$errorMessage,
32
'The messages are not equal.'
33
);
34
}
35
41
public
function
toString
()
42
{
43
return
'Password insecure message is present on customer registration page.'
;
44
}
45
}
Magento\Security\Test\Constraint
Definition:
AssertCustomerEmailChanged.php:7
Magento\Security\Test\Constraint\AssertPasswordIsNotSecureEnoughMessage
Definition:
AssertPasswordIsNotSecureEnoughMessage.php:15
Magento\Security\Test\Constraint\AssertPasswordIsNotSecureEnoughMessage\processAssert
processAssert(CustomerAccountCreate $registerPage)
Definition:
AssertPasswordIsNotSecureEnoughMessage.php:24
Magento\Security\Test\Constraint\AssertPasswordIsNotSecureEnoughMessage\toString
toString()
Definition:
AssertPasswordIsNotSecureEnoughMessage.php:41