Skip to content

Commit 86d8bc7

Browse files
committed
ACP2E-3211: Duplicated items in cart
1 parent 4e1124e commit 86d8bc7

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

app/code/Magento/Checkout/etc/di.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
</type>
6969
<type name="Magento\Checkout\Model\AddProductToCart">
7070
<arguments>
71-
<argument name="quoteMutex" xsi:type="object">Magento\Quote\Model\LoadQuoteByIdMutex</argument>
71+
<argument name="quoteMutex" xsi:type="object">Magento\Quote\Model\ResourceModel\LoadQuoteByIdMutex</argument>
7272
</arguments>
7373
</type>
7474
</config>

app/code/Magento/Quote/Model/LoadQuoteByIdMutex.php renamed to app/code/Magento/Quote/Model/ResourceModel/LoadQuoteByIdMutex.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55
*/
66
declare(strict_types=1);
77

8-
namespace Magento\Quote\Model;
8+
namespace Magento\Quote\Model\ResourceModel;
99

10+
use Magento\Quote\Model\QuoteFactory;
11+
use Magento\Quote\Model\QuoteMutexInterface;
1012
use Magento\Quote\Model\ResourceModel\Quote as QuoteResourceModel;
1113

1214
class LoadQuoteByIdMutex implements QuoteMutexInterface

app/code/Magento/Quote/Test/Unit/Model/LoadQuoteByIdMutexTest.php renamed to app/code/Magento/Quote/Test/Unit/Model/ResourceModel/LoadQuoteByIdMutexTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@
55
*/
66
declare(strict_types=1);
77

8-
namespace Magento\Quote\Test\Unit\Model;
8+
namespace Magento\Quote\Test\Unit\Model\ResourceModel;
99

1010
use Exception;
1111
use InvalidArgumentException;
1212
use Magento\Framework\DB\Adapter\AdapterInterface;
1313
use Magento\Framework\DB\Select;
1414
use Magento\Framework\Serialize\SerializerInterface;
15-
use Magento\Quote\Model\LoadQuoteByIdMutex;
1615
use Magento\Quote\Model\Quote;
17-
use Magento\Quote\Model\ResourceModel\Quote as QuoteResourceModel;
1816
use Magento\Quote\Model\QuoteFactory;
17+
use Magento\Quote\Model\ResourceModel\LoadQuoteByIdMutex;
18+
use Magento\Quote\Model\ResourceModel\Quote as QuoteResourceModel;
1919
use PHPUnit\Framework\MockObject\MockObject;
2020
use PHPUnit\Framework\TestCase;
2121

0 commit comments

Comments
 (0)