@@ -270,7 +270,8 @@ public function testDispatchWithDefaultCustomerGroupId()
270
270
$ this ->quoteMock ->expects ($ this ->exactly (2 ))
271
271
->method ('getCustomerGroupId ' )
272
272
->willReturn ('customerGroupId ' );
273
- $ this ->customerMock ->expects ($ this ->exactly (2 ))->method ('getId ' )->willReturn ('1 ' );
273
+ $ this ->customerMock ->expects ($ this ->once ())->method ('getId ' )->willReturn ('1 ' );
274
+
274
275
/** Assertions */
275
276
$ this ->quoteAddressMock ->expects ($ this ->once ())
276
277
->method ('setPrevQuoteCustomerGroupId ' )
@@ -323,7 +324,6 @@ public function testDispatchWithCustomerCountryInEU()
323
324
->method ('setPrevQuoteCustomerGroupId ' )
324
325
->with ('customerGroupId ' );
325
326
326
- $ this ->customerMock ->expects ($ this ->once ())->method ('getId ' )->willReturn ('1 ' );
327
327
$ this ->quoteMock ->expects ($ this ->once ())->method ('setCustomerGroupId ' )->with ('customerGroupId ' );
328
328
$ this ->quoteMock ->expects ($ this ->once ())->method ('setCustomer ' )->with ($ this ->customerMock );
329
329
$ this ->customerDataFactoryMock ->expects ($ this ->any ())
@@ -431,8 +431,6 @@ public function testDispatchWithEmptyShippingAddress()
431
431
->method ('setPrevQuoteCustomerGroupId ' )
432
432
->with ('customerGroupId ' );
433
433
434
- $ this ->customerMock ->expects ($ this ->once ())->method ('getId ' )->willReturn ('1 ' );
435
-
436
434
$ this ->quoteMock ->expects ($ this ->once ())->method ('setCustomerGroupId ' )->with ('customerGroupId ' );
437
435
$ this ->quoteMock ->expects ($ this ->once ())->method ('setCustomer ' )->with ($ this ->customerMock );
438
436
$ this ->customerDataFactoryMock ->expects ($ this ->any ())
0 commit comments