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
PageCache
Test
Constraint
AssertCacheStatus.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\PageCache\Test\Constraint
;
8
9
use Magento\Mtf\Constraint\AbstractConstraint;
10
use Magento\PageCache\Test\Page\Adminhtml\AdminCache;
11
15
class
AssertCacheStatus
extends
AbstractConstraint
16
{
22
private
$cacheTypes = [
23
'block_html'
=>
"Blocks HTML output"
,
24
'full_page'
=>
"Page Cache"
,
25
];
26
34
public
function
processAssert
(AdminCache $adminCache, array $caches)
35
{
36
$adminCache->open();
37
foreach
($caches as $cacheType => $cacheStatus) {
38
\PHPUnit\Framework\Assert::assertTrue(
39
$adminCache->getGridBlock()->isCacheStatusCorrect($this->cacheTypes[$cacheType], $cacheStatus),
40
$this->cacheTypes[$cacheType] .
" cache status in grid does not equal to "
. $cacheStatus
41
);
42
}
43
}
44
50
public
function
toString
()
51
{
52
return
'Cache status is correct.'
;
53
}
54
}
Magento\PageCache\Test\Constraint\AssertCacheStatus
Definition:
AssertCacheStatus.php:15
Magento\PageCache\Test\Constraint
Definition:
AssertCacheFlushSuccessMessage.php:7
Magento\PageCache\Test\Constraint\AssertCacheStatus\toString
toString()
Definition:
AssertCacheStatus.php:50
Magento\PageCache\Test\Constraint\AssertCacheStatus\processAssert
processAssert(AdminCache $adminCache, array $caches)
Definition:
AssertCacheStatus.php:34