@@ -115,15 +115,15 @@ class SendTest extends \PHPUnit_Framework_TestCase
115
115
*/
116
116
protected function setUp ()
117
117
{
118
- $ this ->resultRedirect = $ this ->getMockBuilder (' Magento\Framework\Controller\Result\Redirect ' )
118
+ $ this ->resultRedirect = $ this ->getMockBuilder (\ Magento \Framework \Controller \Result \Redirect::class )
119
119
->disableOriginalConstructor ()
120
120
->getMock ();
121
121
122
- $ this ->resultLayout = $ this ->getMockBuilder (' Magento\Framework\View\Result\Layout ' )
122
+ $ this ->resultLayout = $ this ->getMockBuilder (\ Magento \Framework \View \Result \Layout::class )
123
123
->disableOriginalConstructor ()
124
124
->getMock ();
125
125
126
- $ this ->resultFactory = $ this ->getMockBuilder (' Magento\Framework\Controller\ResultFactory ' )
126
+ $ this ->resultFactory = $ this ->getMockBuilder (\ Magento \Framework \Controller \ResultFactory::class )
127
127
->disableOriginalConstructor ()
128
128
->getMock ();
129
129
$ this ->resultFactory ->expects ($ this ->any ())
@@ -133,23 +133,23 @@ protected function setUp()
133
133
[ResultFactory::TYPE_LAYOUT , [], $ this ->resultLayout ],
134
134
]);
135
135
136
- $ this ->request = $ this ->getMockBuilder (' Magento\Framework\App\RequestInterface ' )
136
+ $ this ->request = $ this ->getMockBuilder (\ Magento \Framework \App \RequestInterface::class )
137
137
->setMethods ([
138
138
'getPost ' ,
139
139
'getPostValue ' ,
140
140
])
141
141
->getMockForAbstractClass ();
142
142
143
- $ this ->messageManager = $ this ->getMockBuilder (' Magento\Framework\Message\ManagerInterface ' )
143
+ $ this ->messageManager = $ this ->getMockBuilder (\ Magento \Framework \Message \ManagerInterface::class )
144
144
->getMockForAbstractClass ();
145
145
146
- $ this ->url = $ this ->getMockBuilder (' Magento\Framework\UrlInterface ' )
146
+ $ this ->url = $ this ->getMockBuilder (\ Magento \Framework \UrlInterface::class )
147
147
->getMockForAbstractClass ();
148
148
149
- $ this ->eventManager = $ this ->getMockBuilder (' Magento\Framework\Event\ManagerInterface ' )
149
+ $ this ->eventManager = $ this ->getMockBuilder (\ Magento \Framework \Event \ManagerInterface::class )
150
150
->getMockForAbstractClass ();
151
151
152
- $ this ->context = $ this ->getMockBuilder (' Magento\Framework\App\Action\Context ' )
152
+ $ this ->context = $ this ->getMockBuilder (\ Magento \Framework \App \Action \Context::class )
153
153
->disableOriginalConstructor ()
154
154
->getMock ();
155
155
$ this ->context ->expects ($ this ->any ())
@@ -168,54 +168,51 @@ protected function setUp()
168
168
->method ('getEventManager ' )
169
169
->willReturn ($ this ->eventManager );
170
170
171
- $ this ->formKeyValidator = $ this ->getMockBuilder (' Magento\Framework\Data\Form\FormKey\Validator ' )
171
+ $ this ->formKeyValidator = $ this ->getMockBuilder (\ Magento \Framework \Data \Form \FormKey \Validator::class )
172
172
->disableOriginalConstructor ()
173
173
->getMock ();
174
174
175
- $ this ->customerSession = $ this ->getMockBuilder (' Magento\Customer\Model\Session ' )
175
+ $ this ->customerSession = $ this ->getMockBuilder (\ Magento \Customer \Model \Session::class )
176
176
->disableOriginalConstructor ()
177
177
->getMock ();
178
178
179
- $ this ->wishlistProvider = $ this ->getMockBuilder (' Magento\Wishlist\Controller\WishlistProviderInterface ' )
179
+ $ this ->wishlistProvider = $ this ->getMockBuilder (\ Magento \Wishlist \Controller \WishlistProviderInterface::class )
180
180
->getMockForAbstractClass ();
181
181
182
- $ this ->wishlistConfig = $ this ->getMockBuilder (' Magento\Wishlist\Model\Config ' )
182
+ $ this ->wishlistConfig = $ this ->getMockBuilder (\ Magento \Wishlist \Model \Config::class )
183
183
->disableOriginalConstructor ()
184
184
->getMock ();
185
185
186
- $ this ->transportBuilder = $ this ->getMockBuilder (' Magento\Framework\Mail\Template\TransportBuilder ' )
186
+ $ this ->transportBuilder = $ this ->getMockBuilder (\ Magento \Framework \Mail \Template \TransportBuilder::class )
187
187
->disableOriginalConstructor ()
188
188
->getMock ();
189
189
190
- $ this ->inlineTranslation = $ this ->getMockBuilder ('Magento\Framework\Translate\Inline\StateInterface ' )
191
- ->disableOriginalConstructor ()
192
- ->getMock ();
190
+ $ this ->inlineTranslation = $ this ->getMockBuilder (\Magento \Framework \Translate \Inline \StateInterface::class)
191
+ ->getMockForAbstractClass ();
193
192
194
- $ this ->customerViewHelper = $ this ->getMockBuilder (' Magento\Customer\Helper\View ' )
193
+ $ this ->customerViewHelper = $ this ->getMockBuilder (\ Magento \Customer \Helper \View::class )
195
194
->disableOriginalConstructor ()
196
195
->getMock ();
197
196
198
- $ this ->wishlistSession = $ this ->getMockBuilder (' Magento\Framework\Session\Generic ' )
197
+ $ this ->wishlistSession = $ this ->getMockBuilder (\ Magento \Framework \Session \Generic::class )
199
198
->disableOriginalConstructor ()
200
199
->getMock ();
201
200
202
- $ this ->scopeConfig = $ this ->getMockBuilder ('Magento\Framework\App\Config\ScopeConfigInterface ' )
203
- ->disableOriginalConstructor ()
204
- ->getMock ();
201
+ $ this ->scopeConfig = $ this ->getMockBuilder (\Magento \Framework \App \Config \ScopeConfigInterface::class)
202
+ ->getMockForAbstractClass ();
205
203
206
- $ this ->store = $ this ->getMockBuilder (' Magento\Store\Model\Store ' )
204
+ $ this ->store = $ this ->getMockBuilder (\ Magento \Store \Model \Store::class )
207
205
->disableOriginalConstructor ()
208
206
->setMethods (['getStoreId ' ])
209
207
->getMock ();
210
208
211
- $ this ->storeManager = $ this ->getMockBuilder ('Magento\Store\Model\StoreManagerInterface ' )
212
- ->disableOriginalConstructor ()
213
- ->getMock ();
209
+ $ this ->storeManager = $ this ->getMockBuilder (\Magento \Store \Model \StoreManagerInterface::class)
210
+ ->getMockForAbstractClass ();
214
211
$ this ->storeManager ->expects ($ this ->any ())
215
212
->method ('getStore ' )
216
213
->willReturn ($ this ->store );
217
214
218
- $ this ->wishlist = $ this ->getMockBuilder (' Magento\Wishlist\Model\Wishlist ' )
215
+ $ this ->wishlist = $ this ->getMockBuilder (\ Magento \Wishlist \Model \Wishlist::class )
219
216
->disableOriginalConstructor ()
220
217
->setMethods ([
221
218
'getShared ' ,
@@ -227,11 +224,11 @@ protected function setUp()
227
224
])
228
225
->getMock ();
229
226
230
- $ this ->customerData = $ this ->getMockBuilder (' Magento\Customer\Model\Data\Customer ' )
227
+ $ this ->customerData = $ this ->getMockBuilder (\ Magento \Customer \Model \Data \Customer::class )
231
228
->disableOriginalConstructor ()
232
229
->getMock ();
233
230
234
- $ this ->layout = $ this ->getMockBuilder (' Magento\Framework\View\Layout ' )
231
+ $ this ->layout = $ this ->getMockBuilder (\ Magento \Framework \View \Layout::class )
235
232
->disableOriginalConstructor ()
236
233
->setMethods ([
237
234
'getBlock ' ,
@@ -240,7 +237,7 @@ protected function setUp()
240
237
])
241
238
->getMock ();
242
239
243
- $ this ->transport = $ this ->getMockBuilder (' Magento\Framework\Mail\TransportInterface ' )
240
+ $ this ->transport = $ this ->getMockBuilder (\ Magento \Framework \Mail \TransportInterface::class )
244
241
->getMockForAbstractClass ();
245
242
246
243
$ this ->model = new Send (
0 commit comments