Skip to content

Commit 763b5d3

Browse files
committed
MC-38026: [SAQ] - Schedule update remove body class in category
1 parent a92dee7 commit 763b5d3

File tree

1 file changed

+22
-1
lines changed
  • dev/tests/integration/testsuite/Magento/Catalog/Controller/Adminhtml

1 file changed

+22
-1
lines changed

dev/tests/integration/testsuite/Magento/Catalog/Controller/Adminhtml/CategoryTest.php

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
use Magento\Framework\Acl\Builder;
1111
use Magento\Backend\App\Area\FrontNameResolver;
1212
use Magento\Catalog\Api\CategoryRepositoryInterface;
13+
use Magento\Framework\App\ProductMetadata;
14+
use Magento\Framework\App\ProductMetadataInterface;
1315
use Magento\Framework\App\Request\Http as HttpRequest;
1416
use Magento\Framework\Message\MessageInterface;
1517
use 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

Comments
 (0)