@@ -168,14 +168,8 @@ public function testGetRssData()
168
168
->willReturn ($ configViewMock );
169
169
170
170
$ product = $ this ->getMockBuilder (\Magento \catalog \Model \Product::class)
171
- ->setMethods ([
172
- '__sleep ' ,
173
- '__wakeup ' ,
174
- 'getName ' ,
175
- 'getAllowedInRss ' ,
176
- 'getProductUrl ' ,
177
- 'getDescription ' ,
178
- 'getAllowedPriceInRss ' ])->disableOriginalConstructor ()->getMock ();
171
+ ->setMethods (['__sleep ' , '__wakeup ' , 'getName ' , 'getAllowedInRss ' , 'getProductUrl ' , 'getDescription ' , 'getAllowedPriceInRss ' ])
172
+ ->disableOriginalConstructor ()->getMock ();
179
173
$ product ->expects ($ this ->once ())->method ('getName ' )->will ($ this ->returnValue ('Product Name ' ));
180
174
$ product ->expects ($ this ->once ())->method ('getAllowedInRss ' )->will ($ this ->returnValue (true ));
181
175
$ product ->expects ($ this ->exactly (2 ))->method ('getProductUrl ' )
@@ -234,13 +228,7 @@ public function testGetFeeds()
234
228
->disableOriginalConstructor ()->getMock ();
235
229
236
230
$ collection = $ this ->getMockBuilder (\Magento \Catalog \Model \ResourceModel \Category \Collection::class)
237
- ->setMethods ([
238
- 'addIdFilter ' ,
239
- 'addAttributeToSelect ' ,
240
- 'addAttributeToSort ' ,
241
- 'load ' ,
242
- 'addAttributeToFilter ' ,
243
- 'getIterator ' ])->disableOriginalConstructor ()->getMock ();
231
+ ->setMethods (['addIdFilter ' , 'addAttributeToSelect ' , 'addAttributeToSort ' , 'load ' , 'addAttributeToFilter ' , 'getIterator ' ])->disableOriginalConstructor ()->getMock ();
244
232
$ collection ->expects ($ this ->once ())->method ('addIdFilter ' )->will ($ this ->returnSelf ());
245
233
$ collection ->expects ($ this ->exactly (3 ))->method ('addAttributeToSelect ' )->will ($ this ->returnSelf ());
246
234
$ collection ->expects ($ this ->once ())->method ('addAttributeToSort ' )->will ($ this ->returnSelf ());
0 commit comments