Skip to content

Commit 6d93e5e

Browse files
30350:Unable to update the items of a bundle-product in a wishlist- Updated the functional tests
1 parent 6af1f80 commit 6d93e5e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/Wishlist/UpdateBundleProductsFromWishlistTest.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ protected function setUp(): void
5959
*/
6060
public function testUpdateBundleProductWithOptions(): void
6161
{
62-
$qty = 2;
62+
$qty = 5;
6363
$optionQty = 1;
6464
$sku = 'bundle-product';
6565
$product = $this->productRepository->get($sku);
@@ -84,7 +84,6 @@ public function testUpdateBundleProductWithOptions(): void
8484

8585
$query = $this->getBundleQuery((int)$wishlistItemId, $qty, $bundleOptions, (int)$wishlistId);
8686
$response = $this->graphQlMutation($query, [], '', $this->getHeaderMap());
87-
8887
$this->assertArrayHasKey('updateProductsInWishlist', $response);
8988
$this->assertArrayHasKey('wishlist', $response['updateProductsInWishlist']);
9089
$response = $response['updateProductsInWishlist']['wishlist'];
@@ -198,7 +197,6 @@ private function getBundleQuery(
198197
updated_at
199198
items_v2 {
200199
id
201-
description
202200
quantity
203201
... on BundleWishlistItem {
204202
bundle_options {
@@ -223,7 +221,6 @@ private function getBundleQuery(
223221
/**
224222
* @param int $optionId
225223
* @param int $selectionId
226-
*
227224
* @param int $quantity
228225
*
229226
* @return string
@@ -303,7 +300,6 @@ private function addQuery(
303300
updated_at
304301
items_v2 {
305302
id
306-
description
307303
quantity
308304
added_at
309305
... on BundleWishlistItem {
@@ -327,3 +323,4 @@ private function addQuery(
327323
}
328324

329325
}
326+

0 commit comments

Comments
 (0)