Closed chalov-anton closed 4 years ago
Cover exception with API-functional test https://github.com/magento/graphql-ce/blob/765f3804e919e5f06f4941eb4a227258befe2995/app/code/Magento/QuoteGraphQl/Model/Resolver/RemoveItemFromCart.php#L70
https://github.com/magento/graphql-ce/tree/2.3-develop/dev/tests/api-functional/testsuite/Magento/GraphQl/Customer
https://github.com/magento/graphql-ce/tree/2.3-develop/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer
https://devdocs.magento.com/guides/v2.3/graphql/functional-testing.htm
Look like we should cover The item couldn't be removed from the quote. exception here.
However, it's almost impossible to simulate this exception via fixtures.
CC: @lenaorobei
Description:
Cover exception with API-functional test https://github.com/magento/graphql-ce/blob/765f3804e919e5f06f4941eb4a227258befe2995/app/code/Magento/QuoteGraphQl/Model/Resolver/RemoveItemFromCart.php#L70
Examples:
https://github.com/magento/graphql-ce/tree/2.3-develop/dev/tests/api-functional/testsuite/Magento/GraphQl/Customer
https://github.com/magento/graphql-ce/tree/2.3-develop/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer
Guide:
https://devdocs.magento.com/guides/v2.3/graphql/functional-testing.htm