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
AssertAccessTokensErrorRevokeMessage.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\User\Test\Constraint
;
8
9
use Magento\User\Test\Page\Adminhtml\UserEdit;
10
use Magento\Mtf\Constraint\AbstractConstraint;
11
16
class
AssertAccessTokensErrorRevokeMessage
extends
AbstractConstraint
17
{
21
const
ERROR_MESSAGE
=
'This user has no tokens.'
;
22
29
public
function
processAssert
(UserEdit $userEdit)
30
{
31
\PHPUnit\Framework\Assert::assertEquals(
32
self::ERROR_MESSAGE,
33
$userEdit->getMessagesBlock()->getErrorMessage()
34
);
35
}
36
42
public
function
toString
()
43
{
44
return
self::ERROR_MESSAGE .
' error message is present on UserEdit page.'
;
45
}
46
}
Magento\User\Test\Constraint\AssertAccessTokensErrorRevokeMessage\toString
toString()
Definition:
AssertAccessTokensErrorRevokeMessage.php:42
Magento\User\Test\Constraint\AssertAccessTokensErrorRevokeMessage\ERROR_MESSAGE
const ERROR_MESSAGE
Definition:
AssertAccessTokensErrorRevokeMessage.php:21
Magento\User\Test\Constraint
Definition:
AssertAccessTokensErrorRevokeMessage.php:7
Magento\User\Test\Constraint\AssertAccessTokensErrorRevokeMessage\processAssert
processAssert(UserEdit $userEdit)
Definition:
AssertAccessTokensErrorRevokeMessage.php:29
Magento\User\Test\Constraint\AssertAccessTokensErrorRevokeMessage
Definition:
AssertAccessTokensErrorRevokeMessage.php:16