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
Magento
Framework
Module
ModuleXMLTest.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Test\Legacy\Magento\Framework\Module
;
8
12
class
ModuleXMLTest
extends
\PHPUnit\Framework\TestCase
13
{
18
public
function
testModuleXml
($file)
19
{
20
$xml = simplexml_load_file($file);
21
$this->assertEmpty(
22
$xml->xpath(
'/config/module/@version'
),
23
'The "version" attribute is obsolete. Use "setup_version" instead.'
24
);
25
$this->assertEmpty(
26
$xml->xpath(
'/config/module/@active'
),
27
'The "active" attribute is obsolete. The list of active modules is defined in deployment configuration.'
28
);
29
}
30
34
public
function
moduleXmlDataProvider
()
35
{
36
return \Magento\Framework\App\Utility\Files::init()->getConfigFiles(
'module.xml'
);
37
}
38
}
Magento\Test\Legacy\Magento\Framework\Module
Definition:
ModuleXMLTest.php:7
Magento\Test\Legacy\Magento\Framework\Module\ModuleXMLTest
Definition:
ModuleXMLTest.php:12
Magento\Test\Legacy\Magento\Framework\Module\ModuleXMLTest\moduleXmlDataProvider
moduleXmlDataProvider()
Definition:
ModuleXMLTest.php:34
Magento\Test\Legacy\Magento\Framework\Module\ModuleXMLTest\testModuleXml
testModuleXml($file)
Definition:
ModuleXMLTest.php:18