5
5
*/
6
6
namespace Magento \Framework \Interception ;
7
7
8
- use Magento \Framework \App ;
9
- use Magento \Framework \Config \Scope ;
10
- use Magento \Framework \Interception \ObjectManager \Config \Developer ;
11
- use Magento \Framework \ObjectManager \Definition ;
12
- use Magento \Framework \ObjectManager \Factory \Dynamic \Developer as DeveloperFactory ;
13
- use Magento \Framework \ObjectManager \ObjectManager ;
14
- use Magento \Framework \ObjectManager \Relations ;
15
- use Magento \Framework \ObjectManagerInterface ;
16
-
17
8
/**
18
9
* Class GeneralTest
19
10
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
@@ -26,12 +17,12 @@ abstract class AbstractPlugin extends \PHPUnit_Framework_TestCase
26
17
protected $ _configReader ;
27
18
28
19
/**
29
- * @var ObjectManagerInterface
20
+ * @var \Magento\Framework\ ObjectManagerInterface
30
21
*/
31
22
protected $ _objectManager ;
32
23
33
24
/**
34
- * @var ObjectManagerInterface
25
+ * @var \Magento\Framework\ ObjectManagerInterface
35
26
*/
36
27
private $ applicationObjectManager ;
37
28
@@ -41,19 +32,19 @@ public function setUp()
41
32
return ;
42
33
}
43
34
44
- $ this ->applicationObjectManager = App \ObjectManager::getInstance ();
45
- App \ObjectManager::setInstance ($ this ->_objectManager );
35
+ $ this ->applicationObjectManager = \ Magento \ Framework \ App \ObjectManager::getInstance ();
36
+ \ Magento \ Framework \ App \ObjectManager::setInstance ($ this ->_objectManager );
46
37
}
47
38
48
39
public function tearDown ()
49
40
{
50
- App \ObjectManager::setInstance ($ this ->applicationObjectManager );
41
+ \ Magento \ Framework \ App \ObjectManager::setInstance ($ this ->applicationObjectManager );
51
42
}
52
43
53
44
public function setUpInterceptionConfig ($ pluginConfig )
54
45
{
55
- $ config = new Developer ();
56
- $ factory = new DeveloperFactory ($ config , null );
46
+ $ config = new \ Magento \ Framework \ Interception \ ObjectManager \ Config \ Developer ();
47
+ $ factory = new \ Magento \ Framework \ ObjectManager \ Factory \ Dynamic \ Developer ($ config , null );
57
48
58
49
$ this ->_configReader = $ this ->getMock ('Magento\Framework\Config\ReaderInterface ' );
59
50
$ this ->_configReader ->expects (
@@ -66,11 +57,11 @@ public function setUpInterceptionConfig($pluginConfig)
66
57
67
58
$ areaList = $ this ->getMock ('Magento\Framework\App\AreaList ' , [], [], '' , false );
68
59
$ areaList ->expects ($ this ->any ())->method ('getCodes ' )->will ($ this ->returnValue ([]));
69
- $ configScope = new Scope ($ areaList , 'global ' );
60
+ $ configScope = new \ Magento \ Framework \ Config \ Scope ($ areaList , 'global ' );
70
61
$ cache = $ this ->getMock ('Magento\Framework\Config\CacheInterface ' );
71
62
$ cache ->expects ($ this ->any ())->method ('load ' )->will ($ this ->returnValue (false ));
72
- $ definitions = new Definition \Runtime ();
73
- $ relations = new Relations \Runtime ();
63
+ $ definitions = new \ Magento \ Framework \ ObjectManager \ Definition \Runtime ();
64
+ $ relations = new \ Magento \ Framework \ ObjectManager \ Relations \Runtime ();
74
65
$ interceptionConfig = new Config \Config (
75
66
$ this ->_configReader ,
76
67
$ configScope ,
@@ -90,7 +81,7 @@ public function setUpInterceptionConfig($pluginConfig)
90
81
'Magento\Framework\ObjectManager\DefinitionInterface ' => $ definitions ,
91
82
'Magento\Framework\Interception\DefinitionInterface ' => $ interceptionDefinitions
92
83
];
93
- $ this ->_objectManager = new ObjectManager (
84
+ $ this ->_objectManager = new \ Magento \ Framework \ ObjectManager \ ObjectManager (
94
85
$ factory ,
95
86
$ config ,
96
87
$ sharedInstances
0 commit comments