10
10
use Magento \Framework \Acl \Builder ;
11
11
use Magento \Backend \App \Area \FrontNameResolver ;
12
12
use Magento \Catalog \Api \CategoryRepositoryInterface ;
13
+ use Magento \Framework \App \ProductMetadata ;
14
+ use Magento \Framework \App \ProductMetadataInterface ;
13
15
use Magento \Framework \App \Request \Http as HttpRequest ;
14
16
use Magento \Framework \Message \MessageInterface ;
15
17
use Magento \Framework \Registry ;
@@ -270,7 +272,7 @@ public function testSuggestCategoriesActionNoSuggestions(): void
270
272
*/
271
273
public function saveActionDataProvider (): array
272
274
{
273
- return [
275
+ $ result = [
274
276
'default values ' => [
275
277
[
276
278
'id ' => '2 ' ,
@@ -390,6 +392,20 @@ public function saveActionDataProvider(): array
390
392
],
391
393
],
392
394
];
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 ;
393
409
}
394
410
395
411
/**
@@ -398,6 +414,11 @@ public function saveActionDataProvider(): array
398
414
*/
399
415
public function testIncorrectDateFrom (): void
400
416
{
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
+
401
422
$ data = [
402
423
'name ' => 'Test Category ' ,
403
424
'attribute_set_id ' => '3 ' ,
0 commit comments