File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
dev/tests/setup-integration/framework/Magento/TestFramework/Annotation Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 6
6
7
7
namespace Magento \TestFramework \Annotation ;
8
8
9
+ use Magento \Framework \Component \ComponentRegistrar ;
9
10
use Magento \Framework \Filesystem \Io \File ;
10
11
use Magento \TestFramework \Deploy \CliCommand ;
11
12
use Magento \TestFramework \Deploy \TestModuleManager ;
@@ -71,6 +72,12 @@ public function endTest(\PHPUnit\Framework\TestCase $test)
71
72
explode ("_ " , $ annotations ['method ' ]['moduleName ' ][0 ])[1 ];
72
73
73
74
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 );
74
81
}
75
82
}
76
83
}
You can’t perform that action at this time.
0 commit comments