Skip to content

Commit 1fa9615

Browse files
committed
phpcs warning and error fixed
1 parent af94999 commit 1fa9615

File tree

2 files changed

+22
-3
lines changed

2 files changed

+22
-3
lines changed

app/code/Magento/Catalog/Block/Rss/Category.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
/**
1313
* Class Category
1414
* @package Magento\Catalog\Block\Rss
15+
*
1516
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
1617
*/
1718
class Category extends \Magento\Framework\View\Element\AbstractBlock implements DataProviderInterface

app/code/Magento/Catalog/Test/Unit/Block/Rss/CategoryTest.php

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,17 @@ public function testGetRssData()
168168
->willReturn($configViewMock);
169169

170170
$product = $this->getMockBuilder(\Magento\catalog\Model\Product::class)
171-
->setMethods(['__sleep', '__wakeup', 'getName', 'getAllowedInRss', 'getProductUrl', 'getDescription', 'getAllowedPriceInRss'])
172-
->disableOriginalConstructor()->getMock();
171+
->setMethods(
172+
[
173+
'__sleep',
174+
'__wakeup',
175+
'getName',
176+
'getAllowedInRss',
177+
'getProductUrl',
178+
'getDescription',
179+
'getAllowedPriceInRss'
180+
]
181+
)->disableOriginalConstructor()->getMock();
173182
$product->expects($this->once())->method('getName')->will($this->returnValue('Product Name'));
174183
$product->expects($this->once())->method('getAllowedInRss')->will($this->returnValue(true));
175184
$product->expects($this->exactly(2))->method('getProductUrl')
@@ -228,7 +237,16 @@ public function testGetFeeds()
228237
->disableOriginalConstructor()->getMock();
229238

230239
$collection = $this->getMockBuilder(\Magento\Catalog\Model\ResourceModel\Category\Collection::class)
231-
->setMethods(['addIdFilter', 'addAttributeToSelect', 'addAttributeToSort', 'load', 'addAttributeToFilter', 'getIterator'])->disableOriginalConstructor()->getMock();
240+
->setMethods(
241+
[
242+
'addIdFilter',
243+
'addAttributeToSelect',
244+
'addAttributeToSort',
245+
'load',
246+
'addAttributeToFilter',
247+
'getIterator'
248+
]
249+
)->disableOriginalConstructor()->getMock();
232250
$collection->expects($this->once())->method('addIdFilter')->will($this->returnSelf());
233251
$collection->expects($this->exactly(3))->method('addAttributeToSelect')->will($this->returnSelf());
234252
$collection->expects($this->once())->method('addAttributeToSort')->will($this->returnSelf());

0 commit comments

Comments
 (0)