We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce89a56 commit 586bd1bCopy full SHA for 586bd1b
dev/tests/api-functional/framework/bootstrap.php
@@ -37,7 +37,15 @@
37
}
38
unset($iterator, $file);
39
40
-unlink(__DIR__ . '/../../../../app/etc/paths.php');
+// Register the modules under '_files/'
41
+$pathPattern = $pathToInstalledMagentoInstanceModules . '/TestModule*/registration.php';
42
+$files = glob($pathPattern, GLOB_NOSORT);
43
+if ($files === false) {
44
+ throw new \RuntimeException('glob() returned error while searching in \'' . $pathPattern . '\'');
45
+}
46
+foreach ($files as $file) {
47
+ include $file;
48
49
50
/* Bootstrap the application */
51
$settings = new \Magento\TestFramework\Bootstrap\Settings($testsBaseDir, get_defined_constants());
0 commit comments