@@ -24,9 +24,9 @@ class ConfigTest extends \PHPUnit\Framework\TestCase
24
24
protected $ orderStatusCollectionFactoryMock ;
25
25
26
26
/**
27
- * @var \Magento\Sales\Model\Order\Config |\PHPUnit_Framework_MockObject_MockObject
27
+ * @var \Magento\Sales\Model\Order\StatusFactory |\PHPUnit_Framework_MockObject_MockObject
28
28
*/
29
- protected $ orderStatusFactoryMock ;
29
+ protected $ statusFactoryMock ;
30
30
31
31
/**
32
32
* @var \Magento\Sales\Model\Order\Status
@@ -46,7 +46,7 @@ protected function setUp()
46
46
$ this ->orderStatusModel = $ objectManager ->getObject (\Magento \Sales \Model \Order \Status::class, [
47
47
'storeManager ' => $ this ->storeManagerMock ,
48
48
]);
49
- $ this ->orderStatusFactoryMock = $ this ->getMockBuilder (\Magento \Sales \Model \Order \StatusFactory::class)
49
+ $ this ->statusFactoryMock = $ this ->getMockBuilder (\Magento \Sales \Model \Order \StatusFactory::class)
50
50
->setMethods (['load ' , 'create ' ])
51
51
->getMock ();
52
52
$ this ->orderStatusCollectionFactoryMock = $ this ->createPartialMock (
@@ -57,7 +57,7 @@ protected function setUp()
57
57
->getObject (
58
58
\Magento \Sales \Model \Order \Config::class,
59
59
[
60
- 'orderStatusFactory ' => $ this ->orderStatusFactoryMock ,
60
+ 'orderStatusFactory ' => $ this ->statusFactoryMock ,
61
61
'orderStatusCollectionFactory ' => $ this ->orderStatusCollectionFactoryMock
62
62
]
63
63
);
@@ -170,10 +170,10 @@ public function testGetStatuses($state, $joinLabels, $collectionData, $expectedR
170
170
->method ('joinStates ' )
171
171
->will ($ this ->returnValue ($ collectionData ));
172
172
173
- $ this ->orderStatusFactoryMock ->method ('create ' )
173
+ $ this ->statusFactoryMock ->method ('create ' )
174
174
->willReturnSelf ();
175
175
176
- $ this ->orderStatusFactoryMock ->method ('load ' )
176
+ $ this ->statusFactoryMock ->method ('load ' )
177
177
->willReturn ($ this ->orderStatusModel );
178
178
179
179
$ storeMock = $ this ->createMock (\Magento \Store \Api \Data \StoreInterface::class);
0 commit comments