File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
app/code/Magento/Sales/Test/Unit/Model/Resource/Order Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ class RelationTest extends \PHPUnit_Framework_TestCase
33
33
/**
34
34
* @var \Magento\Sales\Model\Resource\Order\Status\History|\PHPUnit_Framework_MockObject_MockObject
35
35
*/
36
- protected $ orderStatusHistoryResourceMock ;
36
+ protected $ statusHistoryResource ;
37
37
38
38
/**
39
39
* @var \Magento\Sales\Model\Order|\PHPUnit_Framework_MockObject_MockObject
@@ -87,7 +87,7 @@ public function setUp()
87
87
]
88
88
)
89
89
->getMock ();
90
- $ this ->orderStatusHistoryResourceMock = $ this ->getMockBuilder ('Magento\Sales\Model\Resource\Order\Status\History ' )
90
+ $ this ->statusHistoryResource = $ this ->getMockBuilder ('Magento\Sales\Model\Resource\Order\Status\History ' )
91
91
->disableOriginalConstructor ()
92
92
->setMethods (
93
93
[
@@ -156,7 +156,7 @@ public function setUp()
156
156
$ this ->addressHandlerMock ,
157
157
$ this ->orderItemResourceMock ,
158
158
$ this ->orderPaymentResourceMock ,
159
- $ this ->orderStatusHistoryResourceMock
159
+ $ this ->statusHistoryResource
160
160
);
161
161
}
162
162
@@ -214,7 +214,7 @@ public function testProcessRelation()
214
214
->method ('setOrder ' )
215
215
->with ($ this ->orderMock )
216
216
->willReturnSelf ();
217
- $ this ->orderStatusHistoryResourceMock ->expects ($ this ->once ())
217
+ $ this ->statusHistoryResource ->expects ($ this ->once ())
218
218
->method ('save ' )
219
219
->with ($ this ->orderStatusHistoryMock )
220
220
->willReturnSelf ();
You can’t perform that action at this time.
0 commit comments