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()
224224 $ this ->requestMock ->expects ($ this ->once ())
225225 ->method ('getParams ' )
226226 ->willReturn ($ this ->requestMockData );
227- $ this ->requestMockData ['quantity ' ] = $ this ->requestMockData ['qty ' ] ?? null ;
227+ $ this ->requestMockData ['quantity ' ] = $ this ->requestMockData ['qty ' ] ?? 0 ;
228228 $ this ->couponGenerationSpec ->expects ($ this ->any ())
229229 ->method ('create ' )
230230 ->with (['data ' => $ this ->requestMockData ])
@@ -297,7 +297,7 @@ public function testExecuteWithAutoGenerationEnabled()
297297 $ this ->requestMock ->expects ($ this ->once ())
298298 ->method ('getParams ' )
299299 ->willReturn ($ this ->requestMockData );
300- $ this ->requestMockData ['quantity ' ] = $ this ->requestMockData ['qty ' ] ?? null ;
300+ $ this ->requestMockData ['quantity ' ] = $ this ->requestMockData ['qty ' ] ?? 0 ;
301301 $ this ->couponGenerationSpec ->expects ($ this ->any ())
302302 ->method ('create ' )
303303 ->with (['data ' => $ this ->requestMockData ])
You can’t perform that action at this time.
0 commit comments