File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
app/code/Magento/ConfigurableProduct/Test/Unit/Controller/Adminhtml/Product Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -95,12 +95,9 @@ public function testExecute()
95
95
->setMethods (['setIndex ' , 'toHtml ' ])
96
96
->getMock ();
97
97
98
- $ this ->view ->expects ($ this ->once ())->method ('loadLayout ' )->with ('popup ' )->willReturnSelf ();
99
98
$ 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 );
101
100
$ 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 ();
104
101
105
102
$ this ->controller ->execute ();
106
103
}
You can’t perform that action at this time.
0 commit comments