Skip to content

Commit cefe9da

Browse files
committed
ACP2E-3786: Not able to preview Scheduled Product update with Category Permissions enabled
1 parent 11f0fd0 commit cefe9da

File tree

1 file changed

+3
-17
lines changed
  • dev/tests/integration/testsuite/Magento/Catalog/Model/Indexer/Category/Product/Action

1 file changed

+3
-17
lines changed

dev/tests/integration/testsuite/Magento/Catalog/Model/Indexer/Category/Product/Action/FullTest.php

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
<?php
22
/**
3-
* Copyright 2019 Adobe
4-
* All Rights Reserved.
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
55
*/
66
declare(strict_types=1);
77

88
namespace Magento\Catalog\Model\Indexer\Category\Product\Action;
99

1010
use Magento\Catalog\Model\Indexer\Category\Product\Action\Full as OriginObject;
11-
use Magento\Framework\Module\Manager;
1211
use Magento\TestFramework\Catalog\Model\Indexer\Category\Product\Action\Full as PreferenceObject;
1312
use Magento\Framework\Interception\PluginListInterface;
1413
use Magento\TestFramework\Helper\Bootstrap;
@@ -36,11 +35,6 @@ class FullTest extends \PHPUnit\Framework\TestCase
3635
*/
3736
private $objectManager;
3837

39-
/**
40-
* @var Manager
41-
*/
42-
private Manager $moduleManager;
43-
4438
/**
4539
* @inheritDoc
4640
*/
@@ -51,7 +45,6 @@ protected function setUp(): void
5145
$this->objectManager->addSharedInstance($preferenceObject, OriginObject::class);
5246
$this->interceptor = $this->objectManager->get(OriginObject::class);
5347
$this->pluginList = $this->objectManager->get(PluginListInterface::class);
54-
$this->moduleManager = $this->objectManager->get(Manager::class);
5548
}
5649

5750
/**
@@ -70,14 +63,7 @@ public function testPreference()
7063
$interceptorClassName = get_class($this->interceptor);
7164

7265
// Check interceptor class name
73-
if ($this->moduleManager->isEnabled('Magento_Staging')) {
74-
$this->assertEquals(
75-
'Magento\Staging\Model\Indexer\Category\Product\Action\Full\Interceptor',
76-
$interceptorClassName
77-
);
78-
} else {
79-
$this->assertEquals(PreferenceObject::class . '\Interceptor', $interceptorClassName);
80-
}
66+
$this->assertEquals($interceptorClassName, PreferenceObject::class . '\Interceptor');
8167

8268
//check that there are no fatal errors
8369
$this->pluginList->getNext($interceptorClassName, 'execute');

0 commit comments

Comments
 (0)