File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
app/code/Magento/Checkout/Test/Unit/Model Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -180,6 +180,7 @@ public function testSavePaymentInformationWithoutBillingAddress()
180
180
$ paymentMock = $ this ->getMockForAbstractClass (PaymentInterface::class);
181
181
$ billingAddressMock = $ this ->getMockForAbstractClass (AddressInterface::class);
182
182
$ quoteMock = $ this ->createMock (Quote::class);
183
+ $ quoteMock ->expects ($ this ->any ())->method ('getItemsQty ' )->willReturn (1 );
183
184
184
185
$ billingAddressMock ->expects ($ this ->once ())->method ('setEmail ' )->with ($ email )->willReturnSelf ();
185
186
@@ -210,6 +211,7 @@ public function testSavePaymentInformationAndPlaceOrderWithLocalizedException()
210
211
211
212
$ quoteMock = $ this ->createMock (Quote::class);
212
213
$ quoteMock ->method ('getBillingAddress ' )->willReturn ($ billingAddressMock );
214
+ $ quoteMock ->expects ($ this ->any ())->method ('getItemsQty ' )->willReturn (1 );
213
215
$ this ->cartRepositoryMock ->method ('getActive ' )->with ($ cartId )->willReturn ($ quoteMock );
214
216
215
217
$ quoteIdMask = $ this ->getMockBuilder (QuoteIdMask::class)
@@ -266,6 +268,9 @@ private function getMockForAssignBillingAddress(
266
268
$ this ->cartRepositoryMock ->method ('getActive ' )
267
269
->with ($ cartId )
268
270
->willReturn ($ quote );
271
+ $ quote ->expects ($ this ->any ())
272
+ ->method ('getItemsQty ' )
273
+ ->willReturn (1 );
269
274
$ quote ->expects ($ this ->any ())
270
275
->method ('getBillingAddress ' )
271
276
->willReturn ($ quoteBillingAddress );
You can’t perform that action at this time.
0 commit comments