@@ -12,6 +12,9 @@ class GeneratorTest extends \PHPUnit_Framework_TestCase
12
12
/** @var \Magento\Webapi\Model\Soap\Wsdl\Generator */
13
13
protected $ _wsdlGenerator ;
14
14
15
+ /** @var \Magento\Framework\Object */
16
+ protected $ customAttributeMap ;
17
+
15
18
/** @var \Magento\Webapi\Model\Soap\Config|\PHPUnit_Framework_MockObject_MockObject */
16
19
protected $ _soapConfigMock ;
17
20
@@ -88,16 +91,18 @@ protected function setUp()
88
91
->method ('getCode ' )
89
92
->will ($ this ->returnValue ('store_code ' ));
90
93
91
- $ helper = new \Magento \TestFramework \Helper \ObjectManager ($ this );
92
- $ this ->_wsdlGenerator = $ helper ->getObject (
94
+ $ objectManager = new \Magento \TestFramework \Helper \ObjectManager ($ this );
95
+
96
+ $ this ->customAttributeMap = $ objectManager ->getObject ('Magento\Framework\Object ' );
97
+ $ this ->_wsdlGenerator = $ objectManager ->getObject (
93
98
'Magento\Webapi\Model\Soap\Wsdl\Generator ' ,
94
99
[
95
100
'apiConfig ' => $ this ->_soapConfigMock ,
96
101
'wsdlFactory ' => $ this ->_wsdlFactoryMock ,
97
102
'cache ' => $ this ->_cacheMock ,
98
103
'typeProcessor ' => $ this ->_typeProcessor ,
99
104
'storeManagerMock ' => $ this ->storeManagerMock ,
100
- 'customAttributeMap ' => new \ Magento \ Framework \ Api \ CustomAttributeMap ()
105
+ 'customAttributeMap ' => $ this -> customAttributeMap
101
106
]
102
107
);
103
108
@@ -191,7 +196,7 @@ public function testHandleWithException()
191
196
$ this ->_cacheMock ,
192
197
$ this ->_typeProcessor ,
193
198
$ this ->storeManagerMock ,
194
- new \ Magento \ Framework \ Api \ CustomAttributeMap ()
199
+ $ this -> customAttributeMap
195
200
]
196
201
)->getMock ();
197
202
0 commit comments