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
Catalog
Test
Constraint
AssertAttributeSetNotInGrid.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Catalog\Test\Constraint
;
8
9
use
Magento\Catalog\Test\Fixture\CatalogAttributeSet
;
10
use Magento\Catalog\Test\Page\Adminhtml\CatalogProductSetIndex;
11
use Magento\Mtf\Constraint\AbstractConstraint;
12
17
class
AssertAttributeSetNotInGrid
extends
AbstractConstraint
18
{
19
/* tags */
20
const
SEVERITY
=
'low'
;
21
/* end tags */
22
30
public
function
processAssert
(CatalogProductSetIndex $productSetPage, CatalogAttributeSet
$attributeSet
)
31
{
32
$filterAttributeSet = [
33
'set_name'
=>
$attributeSet
->getAttributeSetName(),
34
];
35
36
$productSetPage->open();
37
\PHPUnit\Framework\Assert::assertFalse(
38
$productSetPage->getGrid()->isRowVisible($filterAttributeSet),
39
'A "'
. $filterAttributeSet[
'set_name'
] .
40
'" attribute set name already exists. Create a new name and try again.'
41
);
42
}
43
49
public
function
toString
()
50
{
51
return
'Attribute set is absent in Attribute Sets grid'
;
52
}
53
}
Magento\Catalog\Test\Constraint\AssertAttributeSetNotInGrid\processAssert
processAssert(CatalogProductSetIndex $productSetPage, CatalogAttributeSet $attributeSet)
Definition:
AssertAttributeSetNotInGrid.php:30
Magento\Catalog\Test\Constraint\AssertAttributeSetNotInGrid
Definition:
AssertAttributeSetNotInGrid.php:17
Magento\Catalog\Test\Constraint\AssertAttributeSetNotInGrid\toString
toString()
Definition:
AssertAttributeSetNotInGrid.php:49
Magento\Catalog\Test\Constraint
Definition:
AssertAbsenceDeleteAttributeButton.php:7
Magento\Catalog\Test\Fixture\CatalogAttributeSet
Definition:
AssignedAttributes.php:7
$attributeSet
$attributeSet
Definition:
attribute_set_with_image_attribute.php:11
Magento\Catalog\Test\Constraint\AssertAttributeSetNotInGrid\SEVERITY
const SEVERITY
Definition:
AssertAttributeSetNotInGrid.php:20