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
static
testsuite
Magento
Test
Legacy
ObsoleteSystemConfigurationTest.php
Go to the documentation of this file.
1
<?php
10
namespace
Magento\Test\Legacy
;
11
12
class
ObsoleteSystemConfigurationTest
extends
\PHPUnit\Framework\TestCase
13
{
14
public
function
testSystemConfigurationDeclaration
()
15
{
16
$fileList
=
\Magento\Framework\App\Utility\Files::init
()->getConfigFiles(
17
'system.xml'
,
18
[
'wsdl.xml'
,
'wsdl2.xml'
,
'wsi.xml'
],
19
false
20
);
21
foreach
(
$fileList
as $configFile) {
22
$configXml = simplexml_load_file($configFile);
23
$xpath =
'/config/tabs|/config/sections'
;
24
$this->assertEmpty(
25
$configXml->xpath($xpath),
26
'Obsolete system configuration structure detected in file '
. $configFile .
'.'
27
);
28
}
29
}
30
}
Magento\Framework\App\Utility\Files\init
static init()
Definition:
Files.php:147
$fileList
$fileList
Definition:
export.php:13
Magento\Test\Legacy\ObsoleteSystemConfigurationTest\testSystemConfigurationDeclaration
testSystemConfigurationDeclaration()
Definition:
ObsoleteSystemConfigurationTest.php:14
Magento\Test\Legacy\ObsoleteSystemConfigurationTest
Definition:
ObsoleteSystemConfigurationTest.php:12
Magento\Test\Legacy
Definition:
AutogeneratedClassNotInConstructorTest.php:6