Skip to content

Commit da59e48

Browse files
committed
Improve static tests autoloader to support api-functional tests in module directories
1 parent acd6691 commit da59e48

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dev/tests/static/framework/autoload.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@
66

77
use \Magento\Framework\App\Filesystem\DirectoryList;
88

9+
//phpcs:ignore Magento2.Functions.DiscouragedFunction
910
$baseDir = realpath(__DIR__ . '/../../../../');
11+
// phpcs:ignore Magento2.Security.IncludeFile.FoundIncludeFile
1012
require $baseDir . '/app/autoload.php';
13+
// phpcs:ignore Magento2.Security.IncludeFile.FoundIncludeFile
1114
require $baseDir . '/vendor/squizlabs/php_codesniffer/autoload.php';
1215
$testsBaseDir = $baseDir . '/dev/tests/static';
1316
$autoloadWrapper = \Magento\Framework\Autoload\AutoloaderRegistry::getAutoloader();

0 commit comments

Comments
 (0)