File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
app/code/Magento/SalesRule/Test/Unit/Controller/Adminhtml/Promo/Quote Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -157,6 +157,8 @@ public function testExecute()
157
157
->method ('isAjax ' )
158
158
->willReturn (true );
159
159
$ ruleMock = $ this ->getMockBuilder (Rule::class)
160
+ ->addMethods (['getCouponType ' ])
161
+ ->onlyMethods (['getId ' ])
160
162
->disableOriginalConstructor ()
161
163
->getMock ();
162
164
$ this ->registryMock ->expects ($ this ->once ())
@@ -165,6 +167,9 @@ public function testExecute()
165
167
$ ruleMock ->expects ($ this ->once ())
166
168
->method ('getId ' )
167
169
->willReturn (1 );
170
+ $ ruleMock ->expects ($ this ->once ())
171
+ ->method ('getCouponType ' )
172
+ ->willReturn (\Magento \SalesRule \Model \Rule::COUPON_TYPE_AUTO );
168
173
$ this ->requestMock ->expects ($ this ->once ())
169
174
->method ('getParams ' )
170
175
->willReturn ($ requestData );
You can’t perform that action at this time.
0 commit comments