Skip to content

Commit fbef09f

Browse files
author
vpaladiychuk
committed
MAGETWO-37560: Banners are not displayed on Banner Rotator Widget
1 parent 153b37c commit fbef09f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

app/code/Magento/Catalog/Block/Adminhtml/Category/Widget/Chooser.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ public function getCategoryCollection()
172172
*
173173
* @param bool|null $expanded
174174
* @return string
175+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
175176
*/
176177
public function getLoadTreeUrl($expanded = null)
177178
{

app/code/Magento/Widget/Test/Unit/Controller/Adminhtml/Widget/Instance/CategoriesTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,10 @@ public function testExecute()
9797
->willReturnSelf();
9898
$this->chooser->expects($this->once())->method('toHtml')->willReturn($content);
9999

100-
$this->layout->expects($this->once())->method('createBlock')->with($this->blockClass)->willReturn($this->chooser);
100+
$this->layout->expects($this->once())
101+
->method('createBlock')
102+
->with($this->blockClass)
103+
->willReturn($this->chooser);
101104

102105
$this->resultRaw->expects($this->once())->method('setContents')->with($content)->willReturnSelf();
103106

0 commit comments

Comments
 (0)