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
Config
FileResolver
Root.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\FunctionalTestingFramework\Config\FileResolver
;
8
9
use
Magento\FunctionalTestingFramework\Config\FileResolverInterface
;
10
use
Magento\FunctionalTestingFramework\Util\Iterator\File
;
11
12
class
Root
extends
Module
13
{
14
const
ROOT_SUITE_DIR
=
"tests/_suite"
;
15
24
public
function
get
($filename, $scope)
25
{
26
// first pick up the root level test suite dir
27
$paths
= glob(
28
TESTS_BP . DIRECTORY_SEPARATOR . self::ROOT_SUITE_DIR
29
. DIRECTORY_SEPARATOR . $filename
30
);
31
32
// then merge this path into the module based paths
33
// Since we are sharing this code with Module based resolution we will unncessarily glob against modules in the
34
// dev/tests dir tree, however as we plan to migrate to app/code this will be a temporary unneeded check.
35
$paths
= array_merge(
$paths
, $this->
getPaths
($filename, $scope));
36
37
// create and return the iterator for these file paths
38
$iterator
=
new
File
(
$paths
);
39
return
$iterator
;
40
}
41
}
Magento\FunctionalTestingFramework\Config\FileResolverInterface
Definition:
FileResolverInterface.php:11
$iterator
$iterator
Definition:
deployTestModules.php:14
Magento\FunctionalTestingFramework\Config\FileResolver\Module
Definition:
Module.php:16
Magento\FunctionalTestingFramework\Config\FileResolver\Root
Definition:
Root.php:12
$paths
$paths
Definition:
_bootstrap.php:83
Magento\FunctionalTestingFramework\Config\FileResolver\Module\getPaths
getPaths($filename, $scope)
Definition:
Module.php:56
Magento\FunctionalTestingFramework\Config\FileResolver
Definition:
Mask.php:7
Magento\FunctionalTestingFramework\Config\FileResolver\Root\ROOT_SUITE_DIR
const ROOT_SUITE_DIR
Definition:
Root.php:14
Magento\FunctionalTestingFramework\Util\Iterator\File
Definition:
File.php:14