magento/graphql-ce

[Test coverage] Cover exceptions in AssignShippingAddressToCart, AssignBillingAddressToCart

TomashKhamlai opened this issue · 1 comments

Description:

Cover exceptions with api-functional tests:

throw new GraphQlInputException(__($e->getMessage()), $e);

throw new GraphQlNoSuchEntityException(__($e->getMessage()), $e);

throw new GraphQlInputException(__($e->getMessage()), $e);

TestCases:

\Magento\GraphQl\Customer\Quote\Customer\SetShippingAddressOnCartTest
 - testWithInvalidShippingAddressesInput
 \Magento\GraphQl\Customer\Quote\Customer\SetBillingAddressOnCartTest
 - testWithInvalidBillingAddressInput
 - testSetNotExistedBillingAddressId

Examples:

Magento\GraphQl\Customer
Magento\GraphQl\Quote\Customer

Guide:

Graphql Functional Testing

throw new GraphQlInputException(__($e->getMessage()), $e);

done

throw new GraphQlNoSuchEntityException(__($e->getMessage()), $e);

Already covered in dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/SetBillingAddressOnCartTest.php::testSetNotExistedBillingAddressFromAddressBook()

throw new GraphQlInputException(__($e->getMessage()), $e);

done