@@ -99,14 +99,14 @@ public function testUpdateProductInWishlistWithZeroQty()
99
99
{
100
100
$ wishlist = $ this ->getWishlist ();
101
101
$ wishlistId = $ wishlist ['customer ' ]['wishlist ' ]['id ' ];
102
- $ wishlistItem = $ wishlist ['customer ' ]['wishlist ' ]['items ' ][0 ];
102
+ $ wishlistItem = $ wishlist ['customer ' ]['wishlist ' ]['items_v2 ' ][0 ];
103
103
$ qty = 0 ;
104
104
$ description = 'Description for zero quantity ' ;
105
105
$ updateWishlistQuery = $ this ->getQuery ((int ) $ wishlistId , (int ) $ wishlistItem ['id ' ], $ qty , $ description );
106
106
$ response = $ this ->graphQlMutation ($ updateWishlistQuery , [], '' , $ this ->getHeaderMap ());
107
107
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 ' ]);
110
110
self ::assertArrayHasKey ('user_errors ' , $ response ['updateProductsInWishlist ' ]);
111
111
self ::assertCount (1 , $ response ['updateProductsInWishlist ' ]['user_errors ' ]);
112
112
$ message = 'The quantity of a wish list item cannot be 0 ' ;
@@ -127,7 +127,7 @@ public function testUpdateProductWithValidQtyAndNoDescription()
127
127
{
128
128
$ wishlist = $ this ->getWishlist ();
129
129
$ wishlistId = $ wishlist ['customer ' ]['wishlist ' ]['id ' ];
130
- $ wishlistItem = $ wishlist ['customer ' ]['wishlist ' ]['items ' ][0 ];
130
+ $ wishlistItem = $ wishlist ['customer ' ]['wishlist ' ]['items_v2 ' ][0 ];
131
131
$ qty = 2 ;
132
132
$ updateWishlistQuery = $ this ->getQueryWithNoDescription ((int ) $ wishlistId , (int ) $ wishlistItem ['id ' ], $ qty );
133
133
$ response = $ this ->graphQlMutation ($ updateWishlistQuery , [], '' , $ this ->getHeaderMap ());
0 commit comments