Skip to content

Commit af94999

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

File tree

2 files changed

+4
-16
lines changed

2 files changed

+4
-16
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public function __construct(
9595
parent::__construct($context, $data);
9696
}
9797

98-
/**
98+
/**
9999
* Set Block cache key
100100
*
101101
* @return void

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

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

170170
$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();
179173
$product->expects($this->once())->method('getName')->will($this->returnValue('Product Name'));
180174
$product->expects($this->once())->method('getAllowedInRss')->will($this->returnValue(true));
181175
$product->expects($this->exactly(2))->method('getProductUrl')
@@ -234,13 +228,7 @@ public function testGetFeeds()
234228
->disableOriginalConstructor()->getMock();
235229

236230
$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();
244232
$collection->expects($this->once())->method('addIdFilter')->will($this->returnSelf());
245233
$collection->expects($this->exactly(3))->method('addAttributeToSelect')->will($this->returnSelf());
246234
$collection->expects($this->once())->method('addAttributeToSort')->will($this->returnSelf());

0 commit comments

Comments
 (0)