@@ -99,14 +99,14 @@ public function testUpdateProductInWishlistWithZeroQty()
9999 {
100100 $ wishlist = $ this ->getWishlist ();
101101 $ wishlistId = $ wishlist ['customer ' ]['wishlist ' ]['id ' ];
102- $ wishlistItem = $ wishlist ['customer ' ]['wishlist ' ]['items ' ][0 ];
102+ $ wishlistItem = $ wishlist ['customer ' ]['wishlist ' ]['items_v2 ' ][0 ];
103103 $ qty = 0 ;
104104 $ description = 'Description for zero quantity ' ;
105105 $ updateWishlistQuery = $ this ->getQuery ((int ) $ wishlistId , (int ) $ wishlistItem ['id ' ], $ qty , $ description );
106106 $ response = $ this ->graphQlMutation ($ updateWishlistQuery , [], '' , $ this ->getHeaderMap ());
107107 self ::assertEquals (1 , $ response ['updateProductsInWishlist ' ]['wishlist ' ]['items_count ' ]);
108- self ::assertNotEmpty ($ response ['updateProductsInWishlist ' ]['wishlist ' ]['items ' ], 'empty wish list items ' );
109- self ::assertCount (1 , $ response ['updateProductsInWishlist ' ]['wishlist ' ]['items ' ]);
108+ self ::assertNotEmpty ($ response ['updateProductsInWishlist ' ]['wishlist ' ]['items_v2 ' ], 'empty wish list items ' );
109+ self ::assertCount (1 , $ response ['updateProductsInWishlist ' ]['wishlist ' ]['items_v2 ' ]);
110110 self ::assertArrayHasKey ('user_errors ' , $ response ['updateProductsInWishlist ' ]);
111111 self ::assertCount (1 , $ response ['updateProductsInWishlist ' ]['user_errors ' ]);
112112 $ message = 'The quantity of a wish list item cannot be 0 ' ;
@@ -127,7 +127,7 @@ public function testUpdateProductWithValidQtyAndNoDescription()
127127 {
128128 $ wishlist = $ this ->getWishlist ();
129129 $ wishlistId = $ wishlist ['customer ' ]['wishlist ' ]['id ' ];
130- $ wishlistItem = $ wishlist ['customer ' ]['wishlist ' ]['items ' ][0 ];
130+ $ wishlistItem = $ wishlist ['customer ' ]['wishlist ' ]['items_v2 ' ][0 ];
131131 $ qty = 2 ;
132132 $ updateWishlistQuery = $ this ->getQueryWithNoDescription ((int ) $ wishlistId , (int ) $ wishlistItem ['id ' ], $ qty );
133133 $ response = $ this ->graphQlMutation ($ updateWishlistQuery , [], '' , $ this ->getHeaderMap ());
0 commit comments