File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
app/code/Magento/WishlistGraphQl/Model/Resolver/Wishlist
dev/tests/api-functional/testsuite/Magento/GraphQl/Wishlist Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ function (Error $error) {
180
180
$ wishlist ->save ();
181
181
}
182
182
return [
183
- 'status ' => isset ($ cartErrors ) ? false : true ,
183
+ 'status ' => empty ($ cartErrors ) ? true : false ,
184
184
'add_wishlist_items_to_cart_user_errors ' => $ cartErrors ,
185
185
];
186
186
}
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ public function testAddItemsToCart(): void
50
50
51
51
$ this ->assertArrayHasKey ('addWishlistItemsToCart ' , $ response );
52
52
$ this ->assertArrayHasKey ('status ' , $ response ['addWishlistItemsToCart ' ]);
53
- $ this ->assertEquals ($ response ['addWishlistItemsToCart ' ]['status ' ], 1 );
53
+ $ this ->assertEquals ($ response ['addWishlistItemsToCart ' ]['status ' ], true );
54
54
}
55
55
56
56
/**
You can’t perform that action at this time.
0 commit comments