1010use Magento \Framework \Acl \Builder ;
1111use Magento \Backend \App \Area \FrontNameResolver ;
1212use Magento \Catalog \Api \CategoryRepositoryInterface ;
13+ use Magento \Framework \App \ProductMetadata ;
14+ use Magento \Framework \App \ProductMetadataInterface ;
1315use Magento \Framework \App \Request \Http as HttpRequest ;
1416use Magento \Framework \Message \MessageInterface ;
1517use Magento \Framework \Registry ;
@@ -270,7 +272,7 @@ public function testSuggestCategoriesActionNoSuggestions(): void
270272 */
271273 public function saveActionDataProvider (): array
272274 {
273- return [
275+ $ result = [
274276 'default values ' => [
275277 [
276278 'id ' => '2 ' ,
@@ -390,6 +392,20 @@ public function saveActionDataProvider(): array
390392 ],
391393 ],
392394 ];
395+
396+ $ productMetadataInterface = Bootstrap::getObjectManager ()->get (ProductMetadataInterface::class);
397+ if ($ productMetadataInterface ->getEdition () !== ProductMetadata::EDITION_NAME ) {
398+ /**
399+ * Skip save custom_design_from and custom_design_to attributes,
400+ * because this logic is rewritten on EE by Catalog Schedule
401+ */
402+ foreach (array_keys ($ result ['custom values ' ]) as $ index ) {
403+ unset($ result ['custom values ' ][$ index ]['custom_design_from ' ]);
404+ unset($ result ['custom values ' ][$ index ]['custom_design_to ' ]);
405+ }
406+ }
407+
408+ return $ result ;
393409 }
394410
395411 /**
@@ -398,6 +414,11 @@ public function saveActionDataProvider(): array
398414 */
399415 public function testIncorrectDateFrom (): void
400416 {
417+ $ productMetadataInterface = Bootstrap::getObjectManager ()->get (ProductMetadataInterface::class);
418+ if ($ productMetadataInterface ->getEdition () !== ProductMetadata::EDITION_NAME ) {
419+ $ this ->markTestSkipped ('Skipped, because this logic is rewritten on EE by Catalog Schedule ' );
420+ }
421+
401422 $ data = [
402423 'name ' => 'Test Category ' ,
403424 'attribute_set_id ' => '3 ' ,
0 commit comments