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
AssertUserFailedLoginByPermissionMessage.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
AssertUserFailedLoginByPermissionMessage
extends
AbstractConstraint
17
{
18
const
FAILED_LOGIN_MESSAGE
=
'More permissions are needed to access this.'
;
19
27
public
function
processAssert
(
AdminAuthLogin
$adminAuth, User $customAdmin)
28
{
29
$adminAuth->open();
30
$adminAuth->
getLoginBlock
()->fill($customAdmin);
31
$adminAuth->
getLoginBlock
()->submit();
32
33
\PHPUnit\Framework\Assert::assertEquals(
34
self::FAILED_LOGIN_MESSAGE,
35
$adminAuth->
getMessagesBlock
()->getErrorMessage(),
36
'Message "'
. self::FAILED_LOGIN_MESSAGE .
'" is not visible.'
37
);
38
}
39
45
public
function
toString
()
46
{
47
return
'Invalid credentials message was displayed.'
;
48
}
49
}
Magento\User\Test\Constraint\AssertUserFailedLoginByPermissionMessage\processAssert
processAssert(AdminAuthLogin $adminAuth, User $customAdmin)
Definition:
AssertUserFailedLoginByPermissionMessage.php:27
Magento\Backend\Test\Page\AdminAuthLogin\getLoginBlock
getLoginBlock()
Definition:
AdminAuthLogin.php:56
Magento\User\Test\Constraint\AssertUserFailedLoginByPermissionMessage
Definition:
AssertUserFailedLoginByPermissionMessage.php:16
Magento\Backend\Test\Page\AdminAuthLogin\getMessagesBlock
getMessagesBlock()
Definition:
AdminAuthLogin.php:80
Magento\User\Test\Constraint\AssertUserFailedLoginByPermissionMessage\toString
toString()
Definition:
AssertUserFailedLoginByPermissionMessage.php:45
Magento\User\Test\Constraint\AssertUserFailedLoginByPermissionMessage\FAILED_LOGIN_MESSAGE
const FAILED_LOGIN_MESSAGE
Definition:
AssertUserFailedLoginByPermissionMessage.php:18
Magento\Backend\Test\Page\AdminAuthLogin
Definition:
AdminAuthLogin.php:15
Magento\User\Test\Constraint
Definition:
AssertAccessTokensErrorRevokeMessage.php:7
Magento\User\Test\Fixture\User
Definition:
CurrentPassword.php:7