6
6
namespace Magento \Indexer \Test \Unit \Controller \Adminhtml \Indexer ;
7
7
8
8
/**
9
+ * Mass invalidate Test
10
+ *
9
11
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
10
12
*/
11
13
class MassInvalidateTest extends \PHPUnit \Framework \TestCase
@@ -91,7 +93,9 @@ class MassInvalidateTest extends \PHPUnit\Framework\TestCase
91
93
*/
92
94
protected function setUp ()
93
95
{
94
- $ this ->contextMock = $ this ->createPartialMock (\Magento \Backend \App \Action \Context::class, [
96
+ $ this ->contextMock = $ this ->createPartialMock (
97
+ \Magento \Backend \App \Action \Context::class,
98
+ [
95
99
'getAuthorization ' ,
96
100
'getSession ' ,
97
101
'getActionFlag ' ,
@@ -107,14 +111,17 @@ protected function setUp()
107
111
'getObjectManager ' ,
108
112
'getMessageManager ' ,
109
113
'getResultRedirectFactory ' ,
110
- ]);
114
+ ]
115
+ );
111
116
112
117
$ this ->response = $ this ->createPartialMock (
113
118
\Magento \Framework \App \ResponseInterface::class,
114
119
['setRedirect ' , 'sendResponse ' ]
115
120
);
116
121
117
- $ this ->view = $ this ->createPartialMock (\Magento \Framework \App \ViewInterface::class, [
122
+ $ this ->view = $ this ->createPartialMock (
123
+ \Magento \Framework \App \ViewInterface::class,
124
+ [
118
125
'loadLayout ' ,
119
126
'getPage ' ,
120
127
'getConfig ' ,
@@ -129,7 +136,8 @@ protected function setUp()
129
136
'addActionLayoutHandles ' ,
130
137
'setIsLayoutLoaded ' ,
131
138
'isLayoutLoaded '
132
- ]);
139
+ ]
140
+ );
133
141
134
142
$ this ->session = $ this ->createPartialMock (\Magento \Backend \Model \Session::class, ['setIsUrlNotice ' ]);
135
143
$ this ->session ->expects ($ this ->any ())->method ('setIsUrlNotice ' )->willReturn ($ this ->objectManager );
0 commit comments