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
Customer
Test
Constraint
AssertCustomerGroupAlreadyExists.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Customer\Test\Constraint
;
8
9
use Magento\Customer\Test\Page\Adminhtml\CustomerGroupNew;
10
use Magento\Mtf\Constraint\AbstractConstraint;
11
15
class
AssertCustomerGroupAlreadyExists
extends
AbstractConstraint
16
{
17
const
ERROR_MESSAGE
=
'Customer Group already exists.'
;
18
25
public
function
processAssert
(CustomerGroupNew $customerGroupNew)
26
{
27
$actualMessage = $customerGroupNew->getMessagesBlock()->getErrorMessage();
28
\PHPUnit\Framework\Assert::assertEquals(
29
self::ERROR_MESSAGE,
30
$actualMessage,
31
'Wrong error message is displayed.'
32
);
33
}
34
40
public
function
toString
()
41
{
42
return
'Customer group already exist.'
;
43
}
44
}
Magento\Customer\Test\Constraint
Definition:
AssertAdditionalAddressCreatedFrontend.php:7
Magento\Customer\Test\Constraint\AssertCustomerGroupAlreadyExists\processAssert
processAssert(CustomerGroupNew $customerGroupNew)
Definition:
AssertCustomerGroupAlreadyExists.php:25
Magento\Customer\Test\Constraint\AssertCustomerGroupAlreadyExists\ERROR_MESSAGE
const ERROR_MESSAGE
Definition:
AssertCustomerGroupAlreadyExists.php:17
Magento\Customer\Test\Constraint\AssertCustomerGroupAlreadyExists
Definition:
AssertCustomerGroupAlreadyExists.php:15
Magento\Customer\Test\Constraint\AssertCustomerGroupAlreadyExists\toString
toString()
Definition:
AssertCustomerGroupAlreadyExists.php:40