@@ -36,11 +36,6 @@ class ReorderTest extends TestCase
36
36
*/
37
37
private $ reorder ;
38
38
39
- /**
40
- * @var Context|MockObject
41
- */
42
- private $ contextMock ;
43
-
44
39
/**
45
40
* @var Registry|MockObject
46
41
*/
@@ -76,18 +71,18 @@ class ReorderTest extends TestCase
76
71
*/
77
72
protected function setUp ()
78
73
{
79
- $ this -> contextMock = $ this ->createMock (Context::class);
74
+ $ contextMock = $ this ->createMock (Context::class);
80
75
$ this ->registryMock = $ this ->createMock (Registry::class);
81
76
$ this ->orderLoaderMock = $ this ->createMock (OrderLoader::class);
82
77
$ this ->requestMock = $ this ->createMock (RequestInterface::class);
83
78
$ this ->resultRedirectFactoryMock = $ this ->createMock (RedirectFactory::class);
84
79
$ this ->reorderHelperMock = $ this ->createMock (ReorderHelper::class);
85
80
$ this ->messageManagerMock = $ this ->createMock (MessageManagerInterface::class);
86
81
87
- $ this -> contextMock ->expects ($ this ->once ())->method ('getRequest ' )->willReturn ($ this ->requestMock );
88
- $ this -> contextMock ->expects ($ this ->once ())->method ('getResultRedirectFactory ' )
82
+ $ contextMock ->expects ($ this ->once ())->method ('getRequest ' )->willReturn ($ this ->requestMock );
83
+ $ contextMock ->expects ($ this ->once ())->method ('getResultRedirectFactory ' )
89
84
->willReturn ($ this ->resultRedirectFactoryMock );
90
- $ this -> contextMock ->expects ($ this ->once ())->method ('getMessageManager ' )
85
+ $ contextMock ->expects ($ this ->once ())->method ('getMessageManager ' )
91
86
->willReturn ($ this ->messageManagerMock );
92
87
93
88
$ objectManagerMock = $ this ->createMock (ObjectManagerInterface::class);
@@ -101,7 +96,7 @@ protected function setUp()
101
96
$ this ->reorder = $ objectManager ->getObject (
102
97
Reorder::class,
103
98
[
104
- 'context ' => $ this -> contextMock ,
99
+ 'context ' => $ contextMock ,
105
100
'orderLoader ' => $ this ->orderLoaderMock ,
106
101
'registry ' => $ this ->registryMock
107
102
]
0 commit comments