Skip to content

Commit efed2e0

Browse files
committed
MC-37321: Quote customer_is_guest = false
1 parent 8c4eea7 commit efed2e0

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

app/code/Magento/Persistent/Observer/CheckExpirePersistentQuoteObserver.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -168,18 +168,6 @@ private function isPersistentQuoteOutdated(): bool
168168
return false;
169169
}
170170

171-
/**
172-
* Condition checker
173-
*
174-
* @return bool
175-
* @throws \Magento\Framework\Exception\LocalizedException
176-
* @throws \Magento\Framework\Exception\NoSuchEntityException
177-
*/
178-
private function isNeedToExpireSession(): bool
179-
{
180-
return $this->getQuote()->getIsPersistent() || $this->getQuote()->getCustomerIsGuest();
181-
}
182-
183171
/**
184172
* Getter for Quote with micro optimization
185173
*

dev/tests/integration/testsuite/Magento/Checkout/Model/SessionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ public function testLoadCustomerQuoteCustomerWithoutQuote(): void
200200
'Precondition failed: Customer data must not be set to quote'
201201
);
202202
self::assertEquals(
203-
'0',
203+
'1',
204204
$this->quote->getCustomerIsGuest(),
205205
'Precondition failed: Customer must be as guest in quote'
206206
);

0 commit comments

Comments
 (0)