Skip to content
This repository was archived by the owner on Dec 19, 2019. It is now read-only.

[Test coverage] Cover exceptions in AssignShippingAddressToCart, AssignBillingAddressToCart #977

Closed
TomashKhamlai opened this issue Oct 1, 2019 · 1 comment

Comments

@TomashKhamlai
Copy link
Contributor

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

@atwixfirster
Copy link
Contributor

atwixfirster commented Oct 9, 2019

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

atwixfirster added a commit that referenced this issue Oct 9, 2019
atwixfirster added a commit that referenced this issue Oct 10, 2019
@lenaorobei lenaorobei added this to the Release: 2.3.4 milestone Oct 14, 2019
atwixfirster added a commit that referenced this issue Oct 15, 2019
…, AssignBillingAddressToCart

Merge remote-tracking branch 'origin/2.3-develop' into 977-address-to-customer

# Conflicts:
#	dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/SetBillingAddressOnCartTest.php
#	dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/SetShippingAddressOnCartTest.php
lenaorobei added a commit that referenced this issue Oct 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants