Skip to content

Commit a64bf41

Browse files
author
Oleksandr Iegorov
committed
MC-18270: When persistent cart is disabled, logged in users still have a persistent cart session
1 parent 5f7bad7 commit a64bf41

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/code/Magento/Persistent/Test/Unit/Observer/CheckExpirePersistentQuoteObserverTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,10 @@ public function testExecuteWhenPersistentIsEnabled(
147147
$this->persistentHelperMock->expects($this->atLeastOnce())
148148
->method('isEnabled')
149149
->willReturn(true);
150-
$this->sessionMock->expects($this->once())->method('isPersistent')->willReturn(false);
150+
$this->persistentHelperMock->expects($this->atLeastOnce())
151+
->method('isShoppingCartPersist')
152+
->willReturn(true);
153+
$this->sessionMock->expects($this->atLeastOnce())->method('isPersistent')->willReturn(false);
151154
$this->checkoutSessionMock
152155
->method('getQuote')
153156
->willReturn($this->quoteMock);

0 commit comments

Comments
 (0)