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
UrlRewrite
Test
Constraint
AssertUrlRewriteCategoryNotInGrid.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\UrlRewrite\Test\Constraint
;
8
9
use
Magento\Catalog\Test\Fixture\Category
;
10
use Magento\UrlRewrite\Test\Page\Adminhtml\UrlRewriteIndex;
11
use Magento\Mtf\Constraint\AbstractConstraint;
12
17
class
AssertUrlRewriteCategoryNotInGrid
extends
AbstractConstraint
18
{
26
public
function
processAssert
(UrlRewriteIndex $urlRewriteIndex, Category
$category
)
27
{
28
$urlRewriteIndex->open();
29
$filter = [
'request_path'
=>
$category
->getUrlKey()];
30
\PHPUnit\Framework\Assert::assertFalse(
31
$urlRewriteIndex->getUrlRedirectGrid()->isRowVisible($filter),
32
"URL Rewrite with request path '{$category->getUrlKey()}' is present in grid."
33
);
34
}
35
41
public
function
toString
()
42
{
43
return
'URL Rewrite is absent in grid.'
;
44
}
45
}
$category
$category
Definition:
catalog_category_with_slash.php:7
Magento\Catalog\Test\Fixture\Category
Definition:
CategoryProducts.php:7
Magento\UrlRewrite\Test\Constraint\AssertUrlRewriteCategoryNotInGrid\toString
toString()
Definition:
AssertUrlRewriteCategoryNotInGrid.php:41
Magento\UrlRewrite\Test\Constraint\AssertUrlRewriteCategoryNotInGrid
Definition:
AssertUrlRewriteCategoryNotInGrid.php:17
Magento\UrlRewrite\Test\Constraint
Definition:
AssertCategoryUrlWithCustomStoreView.php:7
Magento\UrlRewrite\Test\Constraint\AssertUrlRewriteCategoryNotInGrid\processAssert
processAssert(UrlRewriteIndex $urlRewriteIndex, Category $category)
Definition:
AssertUrlRewriteCategoryNotInGrid.php:26