File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ function getTestType(DOMDocument $dom): string
50
50
$ testType = 'SOAP ' ;
51
51
}
52
52
if (stripos ($ testsuite ->getAttribute ('name ' ), 'graphql ' ) !== false ) {
53
- $ testType = 'GraphQL ' ;
53
+ $ testType = 'GraphQl ' ;
54
54
}
55
55
if (stripos ($ testsuite ->getAttribute ('name ' ), 'integration ' ) !== false ) {
56
56
$ testType = 'Integration ' ;
@@ -74,7 +74,7 @@ function findMagentoModuleDirs(string $testType): array
74
74
'Integration ' => 'Integration ' ,
75
75
'REST ' => 'Api ' ,
76
76
'SOAP ' => 'Api ' ,
77
- 'GraphQL ' => 'GraphQl '
77
+ 'GraphQl ' => 'GraphQl '
78
78
];
79
79
$ magentoBaseDir = realpath (__DIR__ . '/../../.. ' ) . DIRECTORY_SEPARATOR ;
80
80
$ magentoBaseDirPattern = preg_quote ($ magentoBaseDir , '/ ' );
@@ -85,6 +85,10 @@ function findMagentoModuleDirs(string $testType): array
85
85
preg_match ('~ ' . $ magentoBaseDirPattern . '(.+)\/[^\/]+~ ' , $ modulePath , $ match );
86
86
if (isset ($ match [1 ]) && isset ($ patterns [$ testType ])) {
87
87
$ testPathPatterns [] = '../../../ ' . $ match [1 ] . '/*/Test/ ' . $ patterns [$ testType ];
88
+ if ($ testType == 'GraphQl ' ) {
89
+ $ testPathPatterns [] = '../../../ ' . $ match [1 ] . '/*GraphQl/Test/Api ' ;
90
+ $ testPathPatterns [] = '../../../ ' . $ match [1 ] . '/*graph-ql/Test/Api ' ;
91
+ }
88
92
}
89
93
}
90
94
@@ -205,7 +209,7 @@ function getDefaultSuites(string $testType): array
205
209
]
206
210
];
207
211
break ;
208
- case 'GraphQL ' :
212
+ case 'GraphQl ' :
209
213
$ suites = [
210
214
'directory ' => [
211
215
'testsuite/Magento/GraphQl '
You can’t perform that action at this time.
0 commit comments