Skip to content

Commit 41fa0dd

Browse files
committed
AC-14464: GraphQL addWishlistItemsToCart Fails to Update Quantity for Existing Cart Items When One Wishlist Item Is Invalid (Magento 2.4.7-p3)
Fix Static and Unit Tests failures
1 parent 4dbff82 commit 41fa0dd

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

app/code/Magento/WishlistGraphQl/Test/Unit/Model/Resolver/Wishlist/AddToCartTest.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
use Magento\WishlistGraphQl\Mapper\WishlistDataMapper;
2424
use Magento\WishlistGraphQl\Model\CartItems\CartItemsRequestBuilder;
2525
use Magento\WishlistGraphQl\Model\Resolver\Wishlist\AddToCart;
26-
use Magento\Wishlist\Model\LocaleQuantityProcessor;
2726
use Magento\Wishlist\Model\ResourceModel\Item\Collection as WishlistItemsCollection;
2827
use Magento\Wishlist\Model\ResourceModel\Wishlist as WishlistResourceModel;
2928
use Magento\Wishlist\Model\Wishlist;
@@ -67,11 +66,6 @@ class AddToCartTest extends TestCase
6766
*/
6867
private WishlistDataMapper $wishlistDataMapper;
6968

70-
/**
71-
* @var LocaleQuantityProcessor|MockObject
72-
*/
73-
private LocaleQuantityProcessor $quantityProcessor;
74-
7569
/**
7670
* @var CreateEmptyCartForCustomer|MockObject
7771
*/
@@ -131,7 +125,6 @@ protected function setUp(): void
131125
$this->wishlistFactory = $this->createMock(WishlistFactory::class);
132126
$this->wishlistConfig = $this->createMock(WishlistConfig::class);
133127
$this->wishlistDataMapper = $this->createMock(WishlistDataMapper::class);
134-
$this->quantityProcessor = $this->createMock(LocaleQuantityProcessor::class);
135128
$this->createEmptyCartForCustomer = $this->createMock(CreateEmptyCartForCustomer::class);
136129
$this->addProductsToCartService = $this->createMock(AddProductsToCartService::class);
137130
$this->cartItemsRequestBuilder = $this->createMock(CartItemsRequestBuilder::class);
@@ -148,9 +141,7 @@ protected function setUp(): void
148141
$this->wishlistResource,
149142
$this->wishlistFactory,
150143
$this->wishlistConfig,
151-
$this->createMock(\Magento\Wishlist\Model\Wishlist\AddProductsToWishlist::class),
152144
$this->wishlistDataMapper,
153-
$this->quantityProcessor,
154145
$this->createEmptyCartForCustomer,
155146
$this->addProductsToCartService,
156147
$this->cartItemsRequestBuilder,

0 commit comments

Comments
 (0)