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
framework
Magento
TestFramework
TestCase
AbstractIntegrity.php
Go to the documentation of this file.
1
<?php
10
namespace
Magento\TestFramework\TestCase
;
11
12
abstract
class
AbstractIntegrity
extends
\PHPUnit\Framework\TestCase
13
{
19
protected
$_enabledModules
=
null
;
20
26
protected
function
_getEnabledModules()
27
{
28
if
($this->_enabledModules ===
null
) {
30
$helper
=
\Magento\TestFramework\Helper\Factory::getHelper
(\
Magento
\TestFramework\Helper\Config::class);
31
$enabledModules =
$helper
->getEnabledModules();
32
$this->_enabledModules = array_combine($enabledModules, $enabledModules);
33
}
34
return
$this->_enabledModules
;
35
}
36
43
protected
function
_isFileForDisabledModule
($file)
44
{
45
$enabledModules = $this->_getEnabledModules();
46
if
(preg_match(
'/^(.*)::/'
, $file, $matches)) {
47
$module = $matches[1];
48
if
(!isset($enabledModules[$module])) {
49
return
true
;
50
}
51
}
52
return
false
;
53
}
54
60
protected
function
_getDesignThemes()
61
{
62
$themeItems = [];
64
$themeCollection =
\Magento\TestFramework\Helper\Bootstrap::getObjectManager
()->create(
65
\
Magento
\Theme\Model\
ResourceModel
\Theme\Collection::class
66
);
68
foreach
($themeCollection as
$theme
) {
69
$themeItems[
$theme
->getId()] =
$theme
;
70
}
71
return
$themeItems;
72
}
73
}
$helper
$helper
Definition:
iframe.phtml:13
Magento\Catalog\Model\ResourceModel\Product
Definition:
CollectionTest.php:6
Magento\TestFramework\TestCase
Magento\TestFramework\TestCase\AbstractIntegrity\$_enabledModules
$_enabledModules
Definition:
AbstractIntegrity.php:19
Magento\TestFramework\Helper\Factory\getHelper
static getHelper($name)
Definition:
Factory.php:25
Magento
Magento\TestFramework\TestCase\AbstractIntegrity
Definition:
AbstractIntegrity.php:12
$theme
$theme
Definition:
theme_rollback.php:9
Magento\TestFramework\TestCase\AbstractIntegrity\_isFileForDisabledModule
_isFileForDisabledModule($file)
Definition:
AbstractIntegrity.php:43
Magento\TestFramework\Helper\Bootstrap\getObjectManager
static getObjectManager()
Definition:
Bootstrap.php:125