Skip to content

Commit 1cbe0c2

Browse files
committed
MAGETWO-34457: Merge and Fix tests
- fix test related to customAttributesMap
1 parent c68cdcd commit 1cbe0c2

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

dev/tests/unit/testsuite/Magento/Webapi/Model/Soap/Wsdl/GeneratorTest.php

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ class GeneratorTest extends \PHPUnit_Framework_TestCase
1212
/** @var \Magento\Webapi\Model\Soap\Wsdl\Generator */
1313
protected $_wsdlGenerator;
1414

15+
/** @var \Magento\Framework\Object */
16+
protected $customAttributeMap;
17+
1518
/** @var \Magento\Webapi\Model\Soap\Config|\PHPUnit_Framework_MockObject_MockObject */
1619
protected $_soapConfigMock;
1720

@@ -88,16 +91,18 @@ protected function setUp()
8891
->method('getCode')
8992
->will($this->returnValue('store_code'));
9093

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(
9398
'Magento\Webapi\Model\Soap\Wsdl\Generator',
9499
[
95100
'apiConfig' => $this->_soapConfigMock,
96101
'wsdlFactory' => $this->_wsdlFactoryMock,
97102
'cache' => $this->_cacheMock,
98103
'typeProcessor' => $this->_typeProcessor,
99104
'storeManagerMock' => $this->storeManagerMock,
100-
'customAttributeMap' => new \Magento\Framework\Api\CustomAttributeMap()
105+
'customAttributeMap' => $this->customAttributeMap
101106
]
102107
);
103108

@@ -191,7 +196,7 @@ public function testHandleWithException()
191196
$this->_cacheMock,
192197
$this->_typeProcessor,
193198
$this->storeManagerMock,
194-
new \Magento\Framework\Api\CustomAttributeMap()
199+
$this->customAttributeMap
195200
]
196201
)->getMock();
197202

0 commit comments

Comments
 (0)