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
Backend
Test
Constraint
AssertBackendPageIsAvailable.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Backend\Test\Constraint
;
8
9
use Magento\Backend\Test\Page\Adminhtml\Dashboard;
10
use Magento\Mtf\Constraint\AbstractConstraint;
11
15
class
AssertBackendPageIsAvailable
extends
AbstractConstraint
16
{
17
const
ERROR_TEXT
=
'404 Error'
;
18
26
public
function
processAssert
(Dashboard $dashboard, $pageTitle)
27
{
28
\PHPUnit\Framework\Assert::assertEquals(
29
$pageTitle,
30
$dashboard->getTitleBlock()->getTitle(),
31
'Invalid page title is displayed.'
32
);
33
\PHPUnit\Framework\Assert::assertNotContains(
34
self::ERROR_TEXT,
35
$dashboard->getErrorBlock()->getContent(),
36
"404 Error is displayed on '$pageTitle' page."
37
);
38
}
39
45
public
function
toString
()
46
{
47
return
'Backend has correct title and 404 page content is absent.'
;
48
}
49
}
Magento\Backend\Test\Constraint\AssertBackendPageIsAvailable
Definition:
AssertBackendPageIsAvailable.php:15
Magento\Backend\Test\Constraint\AssertBackendPageIsAvailable\ERROR_TEXT
const ERROR_TEXT
Definition:
AssertBackendPageIsAvailable.php:17
Magento\Backend\Test\Constraint
Definition:
AssertAdminLoginPageIsAvailable.php:7
Magento\Backend\Test\Constraint\AssertBackendPageIsAvailable\toString
toString()
Definition:
AssertBackendPageIsAvailable.php:45
Magento\Backend\Test\Constraint\AssertBackendPageIsAvailable\processAssert
processAssert(Dashboard $dashboard, $pageTitle)
Definition:
AssertBackendPageIsAvailable.php:26