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
AssertCustomerGroupFieldsDisabled.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Customer\Test\Constraint
;
8
9
use
Magento\Customer\Test\Fixture\CustomerGroup
;
10
use Magento\Mtf\Constraint\AbstractConstraint;
11
use Magento\Customer\Test\Page\Adminhtml\CustomerGroupEdit;
12
16
class
AssertCustomerGroupFieldsDisabled
extends
AbstractConstraint
17
{
25
public
function
processAssert
(
26
CustomerGroupEdit $customerGroupEdit,
27
array $disabledFields
28
) {
29
foreach
($disabledFields as $field) {
30
\PHPUnit\Framework\Assert::assertTrue(
31
$customerGroupEdit->getPageMainForm()->isFieldDisabled($field),
32
"Field $field is not disabled."
33
);
34
}
35
}
36
42
public
function
toString
()
43
{
44
return
'Customer fields are not available.'
;
45
}
46
}
Magento\Customer\Test\Fixture\CustomerGroup
Definition:
TaxClassIds.php:7
Magento\Customer\Test\Constraint\AssertCustomerGroupFieldsDisabled\processAssert
processAssert(CustomerGroupEdit $customerGroupEdit, array $disabledFields)
Definition:
AssertCustomerGroupFieldsDisabled.php:25
Magento\Customer\Test\Constraint\AssertCustomerGroupFieldsDisabled\toString
toString()
Definition:
AssertCustomerGroupFieldsDisabled.php:42
Magento\Customer\Test\Constraint
Definition:
AssertAdditionalAddressCreatedFrontend.php:7
Magento\Customer\Test\Constraint\AssertCustomerGroupFieldsDisabled
Definition:
AssertCustomerGroupFieldsDisabled.php:16