File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/code/Magento/SalesRule/Test/Unit/Controller/Adminhtml/Promo/Quote Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -224,7 +224,7 @@ public function testExecuteWithCouponTypeAuto()
224
224
$ this ->requestMock ->expects ($ this ->once ())
225
225
->method ('getParams ' )
226
226
->willReturn ($ this ->requestMockData );
227
- $ this ->requestMockData ['quantity ' ] = $ this ->requestMockData ['qty ' ] ?? null ;
227
+ $ this ->requestMockData ['quantity ' ] = $ this ->requestMockData ['qty ' ] ?? 0 ;
228
228
$ this ->couponGenerationSpec ->expects ($ this ->any ())
229
229
->method ('create ' )
230
230
->with (['data ' => $ this ->requestMockData ])
@@ -297,7 +297,7 @@ public function testExecuteWithAutoGenerationEnabled()
297
297
$ this ->requestMock ->expects ($ this ->once ())
298
298
->method ('getParams ' )
299
299
->willReturn ($ this ->requestMockData );
300
- $ this ->requestMockData ['quantity ' ] = $ this ->requestMockData ['qty ' ] ?? null ;
300
+ $ this ->requestMockData ['quantity ' ] = $ this ->requestMockData ['qty ' ] ?? 0 ;
301
301
$ this ->couponGenerationSpec ->expects ($ this ->any ())
302
302
->method ('create ' )
303
303
->with (['data ' => $ this ->requestMockData ])
You can’t perform that action at this time.
0 commit comments