Skip to content

Commit cfa1ef6

Browse files
author
Yurii Hryhoriev
committed
MAGETWO-52042: Saving swatch option cause errors
1 parent 922570c commit cfa1ef6

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

app/code/Magento/ConfigurableProduct/Test/Unit/Controller/Adminhtml/Product/AddAttributeTest.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,9 @@ public function testExecute()
9595
->setMethods(['setIndex', 'toHtml'])
9696
->getMock();
9797

98-
$this->view->expects($this->once())->method('loadLayout')->with('popup')->willReturnSelf();
9998
$this->productBuilder->expects($this->once())->method('build')->with($this->request)->willReturn($product);
100-
$this->view->expects($this->any())->method('getLayout')->willReturn($layout);
99+
$this->view->expects($this->once())->method('getLayout')->willReturn($layout);
101100
$layout->expects($this->once())->method('createBlock')->willReturn($block);
102-
$layout->expects($this->once())->method('setChild')->willReturnSelf();
103-
$this->view->expects($this->any())->method('renderLayout')->willReturnSelf();
104101

105102
$this->controller->execute();
106103
}

0 commit comments

Comments
 (0)