File tree Expand file tree Collapse file tree 1 file changed +13
-10
lines changed
dev/tests/integration/testsuite/Magento Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -37,17 +37,20 @@ public static function suite($className)
37
37
if ($ suiteConfig ->name () === 'Magento Integration Tests ' ) {
38
38
continue ;
39
39
}
40
- $ testSuite = (new TestSuiteMapper ())->map (TestSuiteCollection::fromArray ([$ suiteConfig ]), '' );
41
- /** @var TestSuite $test */
42
- foreach ($ testSuite as $ test ) {
43
- $ testName = $ test ->getName ();
40
+ $ suites = (new TestSuiteMapper ())->map (TestSuiteCollection::fromArray ([$ suiteConfig ]), '' );
41
+ /** @var TestSuite $testSuite */
42
+ foreach ($ suites as $ testSuite ) {
43
+ /** @var TestSuite $test */
44
+ foreach ($ testSuite as $ test ) {
45
+ $ testName = $ test ->getName ();
44
46
45
- if ($ overrideConfig ->hasConfiguration ($ testName ) && !$ test instanceof SkippableInterface) {
46
- $ reflectionClass = new \ReflectionClass ($ testName );
47
- $ resultTest = $ generator ->generateTestWrapper ($ reflectionClass );
48
- $ suite ->addTest (new TestSuite ($ resultTest , $ testName ));
49
- } else {
50
- $ suite ->addTest ($ test );
47
+ if ($ overrideConfig ->hasConfiguration ($ testName ) && !$ test instanceof SkippableInterface) {
48
+ $ reflectionClass = new \ReflectionClass ($ testName );
49
+ $ resultTest = $ generator ->generateTestWrapper ($ reflectionClass );
50
+ $ suite ->addTest (new TestSuite ($ resultTest , $ testName ));
51
+ } else {
52
+ $ suite ->addTest ($ test );
53
+ }
51
54
}
52
55
}
53
56
}
You can’t perform that action at this time.
0 commit comments