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
AssertUserFailedLoginMessage.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\User\Test\Constraint
;
8
9
use
Magento\Backend\Test\Page\AdminAuthLogin
;
10
use
Magento\User\Test\Fixture\User
;
11
use Magento\Mtf\Constraint\AbstractConstraint;
12
16
class
AssertUserFailedLoginMessage
extends
AbstractConstraint
17
{
18
const
FAILED_LOGIN_MESSAGE
=
19
'The account sign-in was incorrect or your account is disabled temporarily. Please wait and try again later.'
;
20
28
public
function
processAssert
(
29
AdminAuthLogin
$adminAuth,
30
User $customAdmin
31
) {
32
$adminAuth->open();
33
$adminAuth->
getLoginBlock
()->fill($customAdmin);
34
$adminAuth->
getLoginBlock
()->submit();
35
36
\PHPUnit\Framework\Assert::assertEquals(
37
self::FAILED_LOGIN_MESSAGE,
38
$adminAuth->
getMessagesBlock
()->getErrorMessage(),
39
'Message "'
. self::FAILED_LOGIN_MESSAGE .
'" is not visible.'
40
);
41
}
42
48
public
function
toString
()
49
{
50
return
'Invalid credentials message was displayed.'
;
51
}
52
}
Magento\User\Test\Constraint\AssertUserFailedLoginMessage\toString
toString()
Definition:
AssertUserFailedLoginMessage.php:48
Magento\Backend\Test\Page\AdminAuthLogin\getLoginBlock
getLoginBlock()
Definition:
AdminAuthLogin.php:56
Magento\User\Test\Constraint\AssertUserFailedLoginMessage\FAILED_LOGIN_MESSAGE
const FAILED_LOGIN_MESSAGE
Definition:
AssertUserFailedLoginMessage.php:18
Magento\Backend\Test\Page\AdminAuthLogin\getMessagesBlock
getMessagesBlock()
Definition:
AdminAuthLogin.php:80
Magento\User\Test\Constraint\AssertUserFailedLoginMessage\processAssert
processAssert(AdminAuthLogin $adminAuth, User $customAdmin)
Definition:
AssertUserFailedLoginMessage.php:28
Magento\Backend\Test\Page\AdminAuthLogin
Definition:
AdminAuthLogin.php:15
Magento\User\Test\Constraint
Definition:
AssertAccessTokensErrorRevokeMessage.php:7
Magento\User\Test\Constraint\AssertUserFailedLoginMessage
Definition:
AssertUserFailedLoginMessage.php:16
Magento\User\Test\Fixture\User
Definition:
CurrentPassword.php:7