1
1
<?php
2
2
/**
3
- * Copyright 2019 Adobe
4
- * All Rights Reserved .
3
+ * Copyright © Magento, Inc. All rights reserved.
4
+ * See COPYING.txt for license details .
5
5
*/
6
6
declare (strict_types=1 );
7
7
8
8
namespace Magento \Catalog \Model \Indexer \Category \Product \Action ;
9
9
10
10
use Magento \Catalog \Model \Indexer \Category \Product \Action \Full as OriginObject ;
11
- use Magento \Framework \Module \Manager ;
12
11
use Magento \TestFramework \Catalog \Model \Indexer \Category \Product \Action \Full as PreferenceObject ;
13
12
use Magento \Framework \Interception \PluginListInterface ;
14
13
use Magento \TestFramework \Helper \Bootstrap ;
@@ -36,11 +35,6 @@ class FullTest extends \PHPUnit\Framework\TestCase
36
35
*/
37
36
private $ objectManager ;
38
37
39
- /**
40
- * @var Manager
41
- */
42
- private Manager $ moduleManager ;
43
-
44
38
/**
45
39
* @inheritDoc
46
40
*/
@@ -51,7 +45,6 @@ protected function setUp(): void
51
45
$ this ->objectManager ->addSharedInstance ($ preferenceObject , OriginObject::class);
52
46
$ this ->interceptor = $ this ->objectManager ->get (OriginObject::class);
53
47
$ this ->pluginList = $ this ->objectManager ->get (PluginListInterface::class);
54
- $ this ->moduleManager = $ this ->objectManager ->get (Manager::class);
55
48
}
56
49
57
50
/**
@@ -70,14 +63,7 @@ public function testPreference()
70
63
$ interceptorClassName = get_class ($ this ->interceptor );
71
64
72
65
// 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 ' );
81
67
82
68
//check that there are no fatal errors
83
69
$ this ->pluginList ->getNext ($ interceptorClassName , 'execute ' );
0 commit comments