Skip to content

Commit 2f9d572

Browse files
committed
test case fail issue fixed
1 parent f968f85 commit 2f9d572

File tree

2 files changed

+6
-13
lines changed

2 files changed

+6
-13
lines changed

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ protected function _construct()
110110
}
111111

112112
/**
113-
* {@inheritdoc}
113+
* @return array
114114
*/
115115
public function getRssData()
116116
{
@@ -225,7 +225,7 @@ public function getCacheLifetime()
225225
}
226226

227227
/**
228-
* {@inheritdoc}
228+
* @return bool
229229
*/
230230
public function isAllowed()
231231
{
@@ -236,7 +236,7 @@ public function isAllowed()
236236
}
237237

238238
/**
239-
* @return array
239+
* @return arraygetFeeds
240240
*/
241241
public function getFeeds()
242242
{
@@ -274,8 +274,9 @@ public function getFeeds()
274274
return $result;
275275
}
276276

277+
277278
/**
278-
* {@inheritdoc}
279+
* @return bool
279280
*/
280281
public function isAuthRequired()
281282
{

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

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -167,15 +167,7 @@ public function testGetRssData()
167167
->willReturn($configViewMock);
168168

169169
$product = $this->getMockBuilder(\Magento\catalog\Model\Product::class)
170-
->setMethods([
171-
'__sleep',
172-
'__wakeup',
173-
'getName',
174-
'getAllowedInRss',
175-
'getProductUrl',
176-
'getDescription',
177-
'getAllowedPriceInRss',
178-
])->disableOriginalConstructor()->getMock();
170+
->setMethods(['__sleep', '__wakeup', 'getName', 'getAllowedInRss', 'getProductUrl', 'getDescription', 'getAllowedPriceInRss',])->disableOriginalConstructor()->getMock();
179171
$product->expects($this->once())->method('getName')->will($this->returnValue('Product Name'));
180172
$product->expects($this->once())->method('getAllowedInRss')->will($this->returnValue(true));
181173
$product->expects($this->exactly(2))->method('getProductUrl')

0 commit comments

Comments
 (0)