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-functional-testing-framework
src
Magento
FunctionalTestingFramework
Util
ModulePathExtractor.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\FunctionalTestingFramework\Util
;
8
12
class
ModulePathExtractor
13
{
14
const
MAGENTO
=
'Magento'
;
15
21
public
function
extractModuleName
(
$path
)
22
{
23
if
(empty(
$path
)) {
24
return
"NO MODULE DETECTED"
;
25
}
26
$paths
= explode(DIRECTORY_SEPARATOR,
$path
);
27
if
(count(
$paths
) < 3) {
28
return
"NO MODULE DETECTED"
;
29
}
elseif
(
$paths
[count(
$paths
)-3] ==
"Mftf"
) {
30
// app/code/Magento/[Analytics]/Test/Mftf/Test/SomeText.xml
31
return
$paths
[count(
$paths
)-5];
32
}
33
// dev/tests/acceptance/tests/functional/Magento/FunctionalTest/[Analytics]/Test/SomeText.xml
34
return
$paths
[count(
$paths
)-3];
35
}
36
42
public
function
getExtensionPath
(
$path
)
43
{
44
$paths
= explode(DIRECTORY_SEPARATOR,
$path
);
45
if
(
$paths
[count(
$paths
)-3] ==
"Mftf"
) {
46
// app/code/[Magento]/Analytics/Test/Mftf/Test/SomeText.xml
47
return
$paths
[count(
$paths
)-6];
48
}
49
return
self::MAGENTO
;
50
}
51
}
elseif
elseif(isset( $params[ 'redirect_parent']))
Definition:
iframe.phtml:17
Magento\FunctionalTestingFramework\Util\ModulePathExtractor\extractModuleName
extractModuleName($path)
Definition:
ModulePathExtractor.php:21
Magento\FunctionalTestingFramework\Util\ModulePathExtractor\getExtensionPath
getExtensionPath($path)
Definition:
ModulePathExtractor.php:42
Magento\FunctionalTestingFramework\Util\ModulePathExtractor
Definition:
ModulePathExtractor.php:12
Magento\FunctionalTestingFramework\Util\ModulePathExtractor\MAGENTO
const MAGENTO
Definition:
ModulePathExtractor.php:14
$paths
$paths
Definition:
_bootstrap.php:83
Magento\FunctionalTestingFramework\Util
Definition:
MagentoTestCase.php:7
$path
$path
Definition:
import_with_filesystem_images.php:14