Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 0784f58

Browse files
- Renamed the variable name to not exceed the 20 characters limit.
- Changed typehint to the correct class.
1 parent 1ad99bc commit 0784f58

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

app/code/Magento/Sales/Test/Unit/Model/Order/ConfigTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ class ConfigTest extends \PHPUnit\Framework\TestCase
2424
protected $orderStatusCollectionFactoryMock;
2525

2626
/**
27-
* @var \Magento\Sales\Model\Order\Config|\PHPUnit_Framework_MockObject_MockObject
27+
* @var \Magento\Sales\Model\Order\StatusFactory|\PHPUnit_Framework_MockObject_MockObject
2828
*/
29-
protected $orderStatusFactoryMock;
29+
protected $statusFactoryMock;
3030

3131
/**
3232
* @var \Magento\Sales\Model\Order\Status
@@ -46,7 +46,7 @@ protected function setUp()
4646
$this->orderStatusModel = $objectManager->getObject(\Magento\Sales\Model\Order\Status::class, [
4747
'storeManager' => $this->storeManagerMock,
4848
]);
49-
$this->orderStatusFactoryMock = $this->getMockBuilder(\Magento\Sales\Model\Order\StatusFactory::class)
49+
$this->statusFactoryMock = $this->getMockBuilder(\Magento\Sales\Model\Order\StatusFactory::class)
5050
->setMethods(['load', 'create'])
5151
->getMock();
5252
$this->orderStatusCollectionFactoryMock = $this->createPartialMock(
@@ -57,7 +57,7 @@ protected function setUp()
5757
->getObject(
5858
\Magento\Sales\Model\Order\Config::class,
5959
[
60-
'orderStatusFactory' => $this->orderStatusFactoryMock,
60+
'orderStatusFactory' => $this->statusFactoryMock,
6161
'orderStatusCollectionFactory' => $this->orderStatusCollectionFactoryMock
6262
]
6363
);
@@ -170,10 +170,10 @@ public function testGetStatuses($state, $joinLabels, $collectionData, $expectedR
170170
->method('joinStates')
171171
->will($this->returnValue($collectionData));
172172

173-
$this->orderStatusFactoryMock->method('create')
173+
$this->statusFactoryMock->method('create')
174174
->willReturnSelf();
175175

176-
$this->orderStatusFactoryMock->method('load')
176+
$this->statusFactoryMock->method('load')
177177
->willReturn($this->orderStatusModel);
178178

179179
$storeMock = $this->createMock(\Magento\Store\Api\Data\StoreInterface::class);

0 commit comments

Comments
 (0)