File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
app/code/Magento/Checkout/Test/Unit/Model Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -370,7 +370,7 @@ public function testAddProductException()
370
370
->method ('getById ' )
371
371
->will ($ this ->returnValue ($ product ));
372
372
373
- $ this ->eventManagerMock ->expects ($ this ->at ( 0 ))->method ('dispatch ' )->with (
373
+ $ this ->eventManagerMock ->expects ($ this ->once ( ))->method ('dispatch ' )->with (
374
374
'checkout_cart_product_add_before ' ,
375
375
['info ' => 4 , 'product ' => $ product ]
376
376
);
@@ -382,10 +382,6 @@ public function testAddProductException()
382
382
->method ('getQuote ' )
383
383
->will ($ this ->returnValue ($ this ->quoteMock ));
384
384
385
- $ this ->eventManagerMock ->expects ($ this ->never ())->method ('dispatch ' )->with (
386
- 'checkout_cart_product_add_after ' ,
387
- ['quote_item ' => 1 , 'product ' => $ product ]
388
- );
389
385
$ this ->expectException (\Magento \Framework \Exception \LocalizedException::class);
390
386
$ this ->cart ->addProduct (4 , 4 );
391
387
}
You can’t perform that action at this time.
0 commit comments