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

[Test coverage] Cover exceptions in Magento\QuoteGraphQl\Model\Resolver\SetPaymentAndPlaceOrder #987

Closed
TomashKhamlai opened this issue Oct 3, 2019 · 0 comments

Comments

@TomashKhamlai
Copy link
Contributor

Description:

Cover exceptions with API-functional tests:

throw new GraphQlInputException(__('Required parameter "cart_id" is missing'));

throw new GraphQlInputException(__('Required parameter "code" for "payment_method" is missing.'));

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

throw new GraphQlInputException(__('Unable to place order: %message', ['message' => $e->getMessage()]), $e);

Examples:

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

Guide:

Graphql Functional Testing

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