File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
dev/tests/static/testsuite/Magento/Test/GraphQl Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,8 @@ public function testModulesRequireGraphQLChange(): void
8282 $ modulesRequireGraphQLChange ,
8383 "The view layer changes have been detected in the " .
8484 str_replace ("GraphQl " , "" , $ graphQlModules ) . " module. " .
85- "The " . $ graphQlModules ." module is expected to be updated to reflect these changes. "
85+ "The " . $ graphQlModules ." module is expected to be updated to reflect these changes. " .
86+ "The test failure can be ignored if the changes can not be covered with GraphQL API. "
8687 );
8788 }
8889
@@ -103,11 +104,6 @@ private static function getModulesRequiringGraphQLChange(): array
103104 $ updatedGraphQlModules = [];
104105 $ requireGraphQLChanges = [];
105106 foreach ($ whitelistFiles as $ whitelistFile ) {
106-
107- if (str_contains (strtolower ($ whitelistFile ), 'admin ' )) {
108- continue ;
109- }
110-
111107 $ moduleName = self ::getModuleName ($ whitelistFile );
112108
113109 if (!$ moduleName ) {
@@ -150,7 +146,7 @@ private static function getModuleName(string $filePath): string
150146 private static function isViewLayerClass (string $ filePath ): bool
151147 {
152148 $ className = self ::getClassNameWithNamespace ($ filePath );
153- if (!$ className ) {
149+ if (!$ className || str_contains ( strtolower ( $ className ), ' admin ' ) ) {
154150 return false ;
155151 }
156152
You can’t perform that action at this time.
0 commit comments