File tree Expand file tree Collapse file tree 2 files changed +1
-22
lines changed
Test/Unit/Controller/Index Expand file tree Collapse file tree 2 files changed +1
-22
lines changed Original file line number Diff line number Diff line change @@ -93,31 +93,9 @@ public function setUp()
93
93
94
94
public function testExecute ()
95
95
{
96
- $ layout = $ this ->getMock (
97
- '\Magento\Framework\View\Layout ' ,
98
- ['getBlock ' , 'initMessages ' ],
99
- [],
100
- '' ,
101
- false
102
- );
103
- $ block = $ this ->getMockForAbstractClass (
104
- '\Magento\Framework\View\Element\AbstractBlock ' ,
105
- ['setFormAction ' ],
106
- '' ,
107
- false
108
- );
109
- $ layout ->expects ($ this ->once ())
110
- ->method ('getBlock ' )
111
- ->with ('contactForm ' )
112
- ->will ($ this ->returnValue ($ block ));
113
-
114
96
$ this ->_view ->expects ($ this ->once ())
115
97
->method ('loadLayout ' );
116
98
117
- $ this ->_view ->expects ($ this ->exactly (1 ))
118
- ->method ('getLayout ' )
119
- ->will ($ this ->returnValue ($ layout ));
120
-
121
99
$ this ->_view ->expects ($ this ->once ())
122
100
->method ('renderLayout ' );
123
101
Original file line number Diff line number Diff line change 5
5
"php" : " ~5.5.0|~5.6.0|~7.0.0" ,
6
6
"magento/module-config" : " 1.0.0-beta" ,
7
7
"magento/module-store" : " 1.0.0-beta" ,
8
+ "magento/module-backend" : " 1.0.0-beta" ,
8
9
"magento/module-customer" : " 1.0.0-beta" ,
9
10
"magento/module-cms" : " 1.0.0-beta" ,
10
11
"magento/framework" : " 1.0.0-beta" ,
You can’t perform that action at this time.
0 commit comments