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
AssertPageByUrlRewriteIsNotFound.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\UrlRewrite\Test\Constraint
;
8
9
use Magento\Catalog\Test\Page\Product\CatalogProductView;
10
use
Magento\UrlRewrite\Test\Fixture\UrlRewrite
;
11
use Magento\Mtf\Client\BrowserInterface;
12
use Magento\Mtf\Constraint\AbstractConstraint;
13
18
class
AssertPageByUrlRewriteIsNotFound
extends
AbstractConstraint
19
{
23
const
NOT_FOUND_MESSAGE
=
'Whoops, our bad...'
;
24
33
public
function
processAssert
(
34
BrowserInterface $browser,
35
CatalogProductView $catalogProductView,
36
UrlRewrite $productRedirect
37
) {
38
$browser->open($_ENV[
'app_frontend_url'
] . $productRedirect->getRequestPath());
39
\PHPUnit\Framework\Assert::assertEquals(
40
self::NOT_FOUND_MESSAGE,
41
$catalogProductView->getTitleBlock()->getTitle(),
42
'Wrong page is displayed.'
43
);
44
}
45
51
public
function
toString
()
52
{
53
return
'Not found page is display.'
;
54
}
55
}
Magento\UrlRewrite\Test\Constraint
Definition:
AssertCategoryUrlWithCustomStoreView.php:7
Magento\UrlRewrite\Test\Constraint\AssertPageByUrlRewriteIsNotFound\processAssert
processAssert(BrowserInterface $browser, CatalogProductView $catalogProductView, UrlRewrite $productRedirect)
Definition:
AssertPageByUrlRewriteIsNotFound.php:33
Magento\UrlRewrite\Test\Fixture\UrlRewrite
Definition:
StoreId.php:7
Magento\UrlRewrite\Test\Constraint\AssertPageByUrlRewriteIsNotFound\toString
toString()
Definition:
AssertPageByUrlRewriteIsNotFound.php:51
Magento\UrlRewrite\Test\Constraint\AssertPageByUrlRewriteIsNotFound
Definition:
AssertPageByUrlRewriteIsNotFound.php:18
Magento\UrlRewrite\Test\Constraint\AssertPageByUrlRewriteIsNotFound\NOT_FOUND_MESSAGE
const NOT_FOUND_MESSAGE
Definition:
AssertPageByUrlRewriteIsNotFound.php:23