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 */
66declare (strict_types=1 );
77
88namespace Magento \Catalog \Model \Indexer \Category \Product \Action ;
99
1010use Magento \Catalog \Model \Indexer \Category \Product \Action \Full as OriginObject ;
11- use Magento \Framework \Module \Manager ;
1211use Magento \TestFramework \Catalog \Model \Indexer \Category \Product \Action \Full as PreferenceObject ;
1312use Magento \Framework \Interception \PluginListInterface ;
1413use 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