Skip to content

Commit b50754f

Browse files
committed
ACP2E-3493: fix static test errors
1 parent 0afb89e commit b50754f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

app/code/Magento/Persistent/Model/CleanExpiredPersistentQuotes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ private function processStoreQuotes(StoreInterface $store): void
8484
));
8585
}
8686
if ($count % $batchSize === 0) {
87-
$this->snapshot->clear($quote);
87+
$this->snapshot->clear($quote);
8888
}
8989
$quote->clearInstance();
9090
unset($quote);

app/code/Magento/Persistent/Test/Unit/Model/CleanExpiredPersistentQuotesTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ public function testExecuteDeletesExpiredQuotes(): void
103103
$quoteCollectionMock->method('setCurPage')->willReturnSelf();
104104
$quoteCollectionMock->expects($this->exactly(2))
105105
->method('count')
106-
->willReturnCallback(function () use ($quoteCollectionMock) {
106+
->willReturnCallback(function () {
107+
$count = 999;
107108
static $filterCallCount = 0;
108109
$filterCallCount++;
109110

0 commit comments

Comments
 (0)