@@ -231,9 +231,10 @@ public function testGetQuote()
231
231
'setCustomerGroupId ' ,
232
232
'setIsActive ' ,
233
233
'getId ' ,
234
- 'assignCustomer ' ,
234
+ 'assignCustomerWithAddressChange ' ,
235
235
'setIgnoreOldQty ' ,
236
236
'setIsSuperMode ' ,
237
+ 'getAllAddresses ' ,
237
238
'__wakeup '
238
239
],
239
240
[],
@@ -290,14 +291,17 @@ public function testGetQuote()
290
291
->with ($ customerId )
291
292
->willReturn ($ dataCustomerMock );
292
293
$ quoteMock ->expects ($ this ->once ())
293
- ->method ('assignCustomer ' )
294
+ ->method ('assignCustomerWithAddressChange ' )
294
295
->with ($ dataCustomerMock );
295
296
$ quoteMock ->expects ($ this ->once ())
296
297
->method ('setIgnoreOldQty ' )
297
298
->with (true );
298
299
$ quoteMock ->expects ($ this ->once ())
299
300
->method ('setIsSuperMode ' )
300
301
->with (true );
302
+ $ quoteMock ->expects ($ this ->any ())
303
+ ->method ('getAllAddresses ' )
304
+ ->will ($ this ->returnValue ([]));
301
305
302
306
$ this ->assertEquals ($ quoteMock , $ this ->quote ->getQuote ());
303
307
}
@@ -320,9 +324,10 @@ public function testGetQuoteGet()
320
324
'setCustomerGroupId ' ,
321
325
'setIsActive ' ,
322
326
'getId ' ,
323
- 'assignCustomer ' ,
327
+ 'assignCustomerWithAddressChange ' ,
324
328
'setIgnoreOldQty ' ,
325
329
'setIsSuperMode ' ,
330
+ 'getAllAddresses ' ,
326
331
'__wakeup '
327
332
],
328
333
[],
@@ -360,14 +365,17 @@ public function testGetQuoteGet()
360
365
->with ($ customerId )
361
366
->willReturn ($ dataCustomerMock );
362
367
$ quoteMock ->expects ($ this ->once ())
363
- ->method ('assignCustomer ' )
368
+ ->method ('assignCustomerWithAddressChange ' )
364
369
->with ($ dataCustomerMock );
365
370
$ quoteMock ->expects ($ this ->once ())
366
371
->method ('setIgnoreOldQty ' )
367
372
->with (true );
368
373
$ quoteMock ->expects ($ this ->once ())
369
374
->method ('setIsSuperMode ' )
370
375
->with (true );
376
+ $ quoteMock ->expects ($ this ->any ())
377
+ ->method ('getAllAddresses ' )
378
+ ->will ($ this ->returnValue ([]));
371
379
372
380
$ this ->assertEquals ($ quoteMock , $ this ->quote ->getQuote ());
373
381
}
0 commit comments