Skip to content

Commit 586bd1b

Browse files
author
Olga Kopylova
committed
MAGETWO-42268: Fix new builds
- removed caching logic from Web API tests
1 parent ce89a56 commit 586bd1b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Diff for: dev/tests/api-functional/framework/bootstrap.php

+9-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,15 @@
3737
}
3838
unset($iterator, $file);
3939

40-
unlink(__DIR__ . '/../../../../app/etc/paths.php');
40+
// 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+
}
4149

4250
/* Bootstrap the application */
4351
$settings = new \Magento\TestFramework\Bootstrap\Settings($testsBaseDir, get_defined_constants());

0 commit comments

Comments
 (0)