Skip to content

Commit e2967bf

Browse files
committed
MAGETWO-88409: Builds stabilization for PR
- setup integration tests fix
1 parent 91bc5cc commit e2967bf

File tree

1 file changed

+7
-0
lines changed
  • dev/tests/setup-integration/framework/Magento/TestFramework/Annotation

1 file changed

+7
-0
lines changed

dev/tests/setup-integration/framework/Magento/TestFramework/Annotation/CopyModules.php

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

77
namespace Magento\TestFramework\Annotation;
88

9+
use Magento\Framework\Component\ComponentRegistrar;
910
use Magento\Framework\Filesystem\Io\File;
1011
use Magento\TestFramework\Deploy\CliCommand;
1112
use Magento\TestFramework\Deploy\TestModuleManager;
@@ -71,6 +72,12 @@ public function endTest(\PHPUnit\Framework\TestCase $test)
7172
explode("_", $annotations['method']['moduleName'][0])[1];
7273

7374
File::rmdirRecursive($path);
75+
$reflection = new \ReflectionClass(ComponentRegistrar::class);
76+
$reflectionProperty = $reflection->getProperty('paths');
77+
$reflectionProperty->setAccessible(true);
78+
$value = $reflectionProperty->getValue();
79+
$value[ComponentRegistrar::MODULE] = [];
80+
$reflectionProperty->setValue($value);
7481
}
7582
}
7683
}

0 commit comments

Comments
 (0)