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
integration
testsuite
Magento
Test
Integrity
Modular
CacheFilesTest.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Test\Integrity\Modular
;
7
8
class
CacheFilesTest
extends
\PHPUnit\Framework\TestCase
9
{
14
public
function
testCacheConfig($area)
15
{
16
$validationStateMock = $this->createMock(\
Magento
\Framework\
Config
\ValidationStateInterface::class);
17
$validationStateMock->expects($this->any())->method(
'isValidationRequired'
)->will($this->returnValue(
true
));
18
19
$objectManager
=
\Magento\TestFramework\Helper\Bootstrap::getObjectManager
();
20
22
$reader =
$objectManager
->create(
23
\
Magento
\Framework\
Cache
\
Config
\Reader::class,
24
[
'validationState'
=> $validationStateMock]
25
);
26
try
{
27
$reader->read($area);
28
}
catch
(\
Magento
\Framework\Exception\
LocalizedException
$exception) {
29
$this->fail($exception->getMessage());
30
}
31
}
32
33
public
function
cacheConfigDataProvider
()
34
{
35
return
[
'global'
=> [
'global'
],
'adminhtml'
=> [
'adminhtml'
],
'frontend'
=> [
'frontend'
]];
36
}
37
}
Magento\Framework\Exception\LocalizedException
Definition:
LocalizedException.php:17
Magento\Framework\DataObject\Cache
Definition:
Cache.php:15
$objectManager
$objectManager
Definition:
bootstrap.php:17
Magento\Test\Integrity\Modular\CacheFilesTest\cacheConfigDataProvider
cacheConfigDataProvider()
Definition:
CacheFilesTest.php:33
Magento\Test\Integrity\Modular
Definition:
AbstractMergedConfigTest.php:6
Magento
Magento\Test\Integrity\Modular\CacheFilesTest
Definition:
CacheFilesTest.php:8
Magento\Framework\App\ResourceConnection\Config
Definition:
Config.php:14
Magento\TestFramework\Helper\Bootstrap\getObjectManager
static getObjectManager()
Definition:
Bootstrap.php:125