Skip to content

Commit a156015

Browse files
committed
MC-38620: Merge release branch into 2.4-develop
fix tests after merge
1 parent 162b49e commit a156015

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

app/code/Magento/Quote/Test/Unit/Observer/Frontend/Quote/Address/CollectTotalsObserverTest.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,8 @@ public function testDispatchWithDefaultCustomerGroupId()
270270
$this->quoteMock->expects($this->exactly(2))
271271
->method('getCustomerGroupId')
272272
->willReturn('customerGroupId');
273-
$this->customerMock->expects($this->exactly(2))->method('getId')->willReturn('1');
273+
$this->customerMock->expects($this->once())->method('getId')->willReturn('1');
274+
274275
/** Assertions */
275276
$this->quoteAddressMock->expects($this->once())
276277
->method('setPrevQuoteCustomerGroupId')
@@ -323,7 +324,6 @@ public function testDispatchWithCustomerCountryInEU()
323324
->method('setPrevQuoteCustomerGroupId')
324325
->with('customerGroupId');
325326

326-
$this->customerMock->expects($this->once())->method('getId')->willReturn('1');
327327
$this->quoteMock->expects($this->once())->method('setCustomerGroupId')->with('customerGroupId');
328328
$this->quoteMock->expects($this->once())->method('setCustomer')->with($this->customerMock);
329329
$this->customerDataFactoryMock->expects($this->any())
@@ -431,8 +431,6 @@ public function testDispatchWithEmptyShippingAddress()
431431
->method('setPrevQuoteCustomerGroupId')
432432
->with('customerGroupId');
433433

434-
$this->customerMock->expects($this->once())->method('getId')->willReturn('1');
435-
436434
$this->quoteMock->expects($this->once())->method('setCustomerGroupId')->with('customerGroupId');
437435
$this->quoteMock->expects($this->once())->method('setCustomer')->with($this->customerMock);
438436
$this->customerDataFactoryMock->expects($this->any())

0 commit comments

Comments
 (0)