Skip to content

Commit 4f7fb5c

Browse files
committed
SEARCH-1968: Static tests to check for dependency of Elasticsearch modules.
1 parent 6523841 commit 4f7fb5c

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

dev/tests/static/testsuite/Magento/Test/Integrity/DependencyTest.php

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
<?php
22
/**
3-
* Scan source code for incorrect or undeclared modules dependencies
4-
*
53
* Copyright © Magento, Inc. All rights reserved.
64
* See COPYING.txt for license details.
7-
*
85
*/
96
namespace Magento\Test\Integrity;
107

@@ -29,6 +26,8 @@
2926
use Magento\TestFramework\Dependency\VirtualType\VirtualTypeMapper;
3027

3128
/**
29+
* Scan source code for incorrect or undeclared modules dependencies
30+
*
3231
* @SuppressWarnings(PHPMD.ExcessiveClassComplexity)
3332
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
3433
* @SuppressWarnings(PHPMD.TooManyFields)
@@ -38,32 +37,32 @@ class DependencyTest extends \PHPUnit\Framework\TestCase
3837
/**
3938
* Soft dependency between modules
4039
*/
41-
const TYPE_SOFT = 'soft';
40+
public const TYPE_SOFT = 'soft';
4241

4342
/**
4443
* Hard dependency between modules
4544
*/
46-
const TYPE_HARD = 'hard';
45+
public const TYPE_HARD = 'hard';
4746

4847
/**
4948
* The identifier of dependency for mapping.
5049
*/
51-
const MAP_TYPE_DECLARED = 'declared';
50+
public const MAP_TYPE_DECLARED = 'declared';
5251

5352
/**
5453
* The identifier of dependency for mapping.
5554
*/
56-
const MAP_TYPE_FOUND = 'found';
55+
public const MAP_TYPE_FOUND = 'found';
5756

5857
/**
5958
* The identifier of dependency for mapping.
6059
*/
61-
const MAP_TYPE_REDUNDANT = 'redundant';
60+
public const MAP_TYPE_REDUNDANT = 'redundant';
6261

6362
/**
6463
* Count of directories in path
6564
*/
66-
const DIR_PATH_COUNT = 4;
65+
public const DIR_PATH_COUNT = 4;
6766

6867
/**
6968
* List of config.xml files by modules
@@ -163,8 +162,6 @@ class DependencyTest extends \PHPUnit\Framework\TestCase
163162
private static $routesWhitelist = null;
164163

165164
/**
166-
* Redundant dependencies whitelist
167-
*
168165
* @var array|null
169166
*/
170167
private static $redundantDependenciesWhitelist = null;

0 commit comments

Comments
 (0)