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
setup-integration
framework
removeTestModules.php
Go to the documentation of this file.
1
<?php
14
$pathToCommittedTestModules
=
$testFrameworkDir
.
'/../_files/Magento'
;
15
$pathToInstalledMagentoInstanceModules
=
$testFrameworkDir
.
'/../../../../app/code/Magento'
;
16
$iterator
=
new
RecursiveIteratorIterator(
17
new
RecursiveDirectoryIterator(
$pathToCommittedTestModules
, RecursiveDirectoryIterator::FOLLOW_SYMLINKS)
18
);
19
20
//collect test modules dirs name
21
$testModuleNames
= array_diff(scandir(
$pathToCommittedTestModules
), [
'..'
,
'.'
]);
22
23
//remove test modules from magento codebase
24
foreach
(
$testModuleNames
as
$name
) {
25
$folder =
$pathToInstalledMagentoInstanceModules
.
'/'
.
$name
;
26
if
(
is_dir
($folder)) {
27
\Magento\Framework\Filesystem\Io\File::rmdirRecursive
($folder);
28
}
29
}
$testModuleNames
$testModuleNames
Definition:
removeTestModules.php:21
$pathToCommittedTestModules
$pathToCommittedTestModules
Definition:
removeTestModules.php:14
$pathToInstalledMagentoInstanceModules
$pathToInstalledMagentoInstanceModules
Definition:
removeTestModules.php:15
Magento\Framework\Backup\is_dir
is_dir($path)
Definition:
io.php:14
$iterator
$iterator
Definition:
removeTestModules.php:16
$testFrameworkDir
$testFrameworkDir
Definition:
bootstrap.php:46
Magento\Framework\Filesystem\Io\File\rmdirRecursive
static rmdirRecursive($dir, $recursive=true)
Definition:
File.php:335
$name
if(!isset($_GET['name'])) $name
Definition:
log.php:14