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
User
Test
Constraint
AssertUserPasswordChangedSuccessfully.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\User\Test\Constraint
;
8
9
use Magento\Mtf\Constraint\AbstractConstraint;
10
use Magento\User\Test\Page\Adminhtml\UserIndex;
11
15
class
AssertUserPasswordChangedSuccessfully
extends
AbstractConstraint
16
{
20
const
FAIL_MESSAGE
=
'Sorry, but this password has already been used. Please create another.'
;
21
28
public
function
processAssert
(UserIndex $userIndex)
29
{
30
$errorMessage = $userIndex->getMessagesBlock()->getErrorMessage();
31
\PHPUnit\Framework\Assert::assertEquals(
32
self::FAIL_MESSAGE,
33
$errorMessage,
34
'Password update failed with error: "'
. self::FAIL_MESSAGE .
'"'
35
);
36
}
37
43
public
function
toString
()
44
{
45
return
'Password validation completed successfully.'
;
46
}
47
}
Magento\User\Test\Constraint\AssertUserPasswordChangedSuccessfully
Definition:
AssertUserPasswordChangedSuccessfully.php:15
Magento\User\Test\Constraint\AssertUserPasswordChangedSuccessfully\toString
toString()
Definition:
AssertUserPasswordChangedSuccessfully.php:43
Magento\User\Test\Constraint\AssertUserPasswordChangedSuccessfully\FAIL_MESSAGE
const FAIL_MESSAGE
Definition:
AssertUserPasswordChangedSuccessfully.php:20
Magento\User\Test\Constraint
Definition:
AssertAccessTokensErrorRevokeMessage.php:7
Magento\User\Test\Constraint\AssertUserPasswordChangedSuccessfully\processAssert
processAssert(UserIndex $userIndex)
Definition:
AssertUserPasswordChangedSuccessfully.php:28