diff --git a/app/code/Magento/WishlistGraphQl/Model/Resolver/CustomerWishlistResolver.php b/app/code/Magento/WishlistGraphQl/Model/Resolver/CustomerWishlistResolver.php index 1e2508fc8abe4..e866b9cead03c 100644 --- a/app/code/Magento/WishlistGraphQl/Model/Resolver/CustomerWishlistResolver.php +++ b/app/code/Magento/WishlistGraphQl/Model/Resolver/CustomerWishlistResolver.php @@ -14,7 +14,7 @@ use Magento\Framework\GraphQl\Exception\GraphQlAuthorizationException; /** - * Fetches the Wishlists data according to the GraphQL schema + * Fetches customer wishlist data */ class CustomerWishlistResolver implements ResolverInterface { @@ -41,7 +41,6 @@ public function resolve( array $value = null, array $args = null ) { - /* Guest checking */ if (false === $context->getExtensionAttributes()->getIsCustomer()) { throw new GraphQlAuthorizationException(__('The current customer isn\'t authorized.')); } diff --git a/dev/tests/api-functional/testsuite/Magento/GraphQl/Wishlist/CustomerWishlistTest.php b/dev/tests/api-functional/testsuite/Magento/GraphQl/Wishlist/CustomerWishlistTest.php index 0a22ddf397281..fbd9c53faf7f5 100644 --- a/dev/tests/api-functional/testsuite/Magento/GraphQl/Wishlist/CustomerWishlistTest.php +++ b/dev/tests/api-functional/testsuite/Magento/GraphQl/Wishlist/CustomerWishlistTest.php @@ -44,20 +44,19 @@ public function testCustomerWishlist(): void $query = <<