Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
testUndeclared () | |
collectRedundant () | |
testRedundant () | |
getAllFiles () | |
Static Public Member Functions | |
static | setUpBeforeClass () |
Data Fields | |
const | TYPE_SOFT = 'soft' |
const | TYPE_HARD = 'hard' |
const | MAP_TYPE_DECLARED = 'declared' |
const | MAP_TYPE_FOUND = 'found' |
const | MAP_TYPE_REDUNDANT = 'redundant' |
const | DIR_PATH_COUNT = 4 |
Protected Member Functions | |
_getCleanedFileContents ($fileType, $file) | |
_collectDependencies ($currentModuleName, $dependencies=[]) | |
_prepareFiles ($fileType, $files, $skip=null) | |
_getDependencies ($module, $type, $mapType) | |
_setDependencies ($module, $type, $mapType, $dependencies) | |
_isFake ($module) | |
Static Protected Member Functions | |
static | _initThemes () |
static | _initRules () |
static | _prepareListConfigXml () |
static | _prepareListDbSchemaXml () |
static | _prepareListRoutesXml () |
static | _prepareMapRouters () |
static | _getTypes () |
static | convertModuleName (string $jsonName, array $packageModuleMap) |
static | _initDependencies () |
Static Protected Attributes | |
static | $_listConfigXml = [] |
static | $_listDbSchemaXml = [] |
static | $_listRoutesXml = [] |
static | $_mapRouters = [] |
static | $_mapLayoutBlocks = [] |
static | $_mapLayoutHandles = [] |
static | $mapDependencies = [] |
static | $_defaultThemes = '' |
static | $_namespaces |
static | $_rulesInstances = [] |
@SuppressWarnings(PHPMD.ExcessiveClassComplexity) @SuppressWarnings(PHPMD.CouplingBetweenObjects)
Definition at line 25 of file DependencyTest.php.
|
protected |
Collect dependencies
string | $currentModuleName | |
array | $dependencies |
Definition at line 379 of file DependencyTest.php.
|
protected |
Return cleaned file contents
string | $fileType | |
string | $file |
Definition at line 253 of file DependencyTest.php.
|
protected |
Retrieve array of dependency items
$module | |
$type | |
$mapType |
Definition at line 837 of file DependencyTest.php.
|
staticprotected |
|
staticprotected |
Initialise map of dependencies.
Definition at line 722 of file DependencyTest.php.
|
staticprotected |
Create rules objects
Definition at line 225 of file DependencyTest.php.
|
staticprotected |
Initialize default themes
Definition at line 209 of file DependencyTest.php.
|
protected |
Check if module is fake
$module |
Definition at line 870 of file DependencyTest.php.
|
protected |
Convert file list to data provider structure
string | $fileType | |
array | $files | |
bool | null | $skip |
Definition at line 473 of file DependencyTest.php.
|
staticprotected |
Prepare list of config.xml files (by modules).
Definition at line 535 of file DependencyTest.php.
|
staticprotected |
Prepare list of db_schema.xml files (by modules)
Definition at line 549 of file DependencyTest.php.
|
staticprotected |
Prepare list of routes.xml files (by modules)
Definition at line 563 of file DependencyTest.php.
|
staticprotected |
Prepare map of routers
Definition at line 577 of file DependencyTest.php.
|
protected |
Set dependency map items
$module | |
$type | |
$mapType | |
$dependencies |
Definition at line 854 of file DependencyTest.php.
collectRedundant | ( | ) |
Collect redundant dependencies @SuppressWarnings(PHPMD.NPathComplexity)
Definition at line 423 of file DependencyTest.php.
|
staticprotected |
Converts a composer json component name into the Magento Module form
string | $jsonName | The name of a composer json component or dependency e.g. 'magento/module-theme' |
array | $packageModuleMap | Mapping package name with module namespace. |
Definition at line 694 of file DependencyTest.php.
getAllFiles | ( | ) |
Return all files
Definition at line 491 of file DependencyTest.php.
|
static |
Sets up data
Definition at line 163 of file DependencyTest.php.
testRedundant | ( | ) |
Check redundant dependencies
@depends collectRedundant
Definition at line 441 of file DependencyTest.php.
testUndeclared | ( | ) |
Check undeclared modules dependencies for specified file
string | $fileType | |
string | $file |
Definition at line 288 of file DependencyTest.php.
|
staticprotected |
Definition at line 135 of file DependencyTest.php.
|
staticprotected |
Definition at line 57 of file DependencyTest.php.
|
staticprotected |
Definition at line 68 of file DependencyTest.php.
|
staticprotected |
Definition at line 79 of file DependencyTest.php.
|
staticprotected |
Definition at line 102 of file DependencyTest.php.
|
staticprotected |
Definition at line 114 of file DependencyTest.php.
|
staticprotected |
Definition at line 90 of file DependencyTest.php.
|
staticprotected |
Definition at line 144 of file DependencyTest.php.
|
staticprotected |
Definition at line 151 of file DependencyTest.php.
|
staticprotected |
Definition at line 128 of file DependencyTest.php.
const DIR_PATH_COUNT = 4 |
Count of directories in path
Definition at line 46 of file DependencyTest.php.
const MAP_TYPE_DECLARED = 'declared' |
Types of dependencies map arrays
Definition at line 37 of file DependencyTest.php.
const MAP_TYPE_FOUND = 'found' |
Definition at line 39 of file DependencyTest.php.
const MAP_TYPE_REDUNDANT = 'redundant' |
Definition at line 41 of file DependencyTest.php.
const TYPE_HARD = 'hard' |
Definition at line 32 of file DependencyTest.php.
const TYPE_SOFT = 'soft' |
Types of dependencies between modules
Definition at line 30 of file DependencyTest.php.