This repository was archived by the owner on Dec 19, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 150
This repository was archived by the owner on Dec 19, 2019. It is now read-only.
[Test coverage] Customer addresses #674
Copy link
Copy link
Closed
Labels
Contribution DayTickets is good for start on Contribution DayTickets is good for start on Contribution Daygood first issueGood for newcomersGood for newcomerstest-coverage
Milestone
Description
Need to cover with API-functional tests cases in
customer: Customer @resolver(class: "Magento\\CustomerGraphQl\\Model\\Resolver\\Customer") @doc(description: "The customer query returns information about a customer account") @cache(cacheable: false)
deleteCustomerAddress(id: Int!): Boolean @resolver(class: "Magento\\CustomerGraphQl\\Model\\Resolver\\DeleteCustomerAddress") @doc(description: "Delete customer address")
updateCustomerAddress(id: Int!, input: CustomerAddressInput): CustomerAddress @resolver(class: "Magento\\CustomerGraphQl\\Model\\Resolver\\UpdateCustomerAddress") @doc(description: "Update customer address")
Test cases:
\Magento\GraphQl\Customer\CreateCustomerAddressTest
- createAddressWithInvalidInput (data provider with: missed `input`, empty `input`, not array `input` parameter)
\Magento\GraphQl\Customer\DeleteCustomerAddressTest
- deleteCustomerAddressIfAddressIdIsInvalid (id is missed, id is empty)
- deleteAnotherCustomerAddress (attempt to delete address which belongs to another customer)
- testDeleteCustomerAddressIfAccountIsNotConfirmed
- testDeleteCustomerAddressIfAccountIsLocked (\Magento\GraphQl\Customer\UpdateCustomerTest::lockCustomer)
\Magento\GraphQl\Customer\UpdateCustomerAddressTest
- updateCustomerAddressIfAddressIdIsInvalid (id is missed, id is empty)
- updateCustomerAddressWithInvalidInput (data provider with: missed `input`, empty `input`, not array `input` parameter)
- testUpdateNonExistCustomerAddress
- updateAnotherCustomerAddress (attempt to update address which belongs to another customer)
- testUpdateCustomerAddressIfAccountIsNotConfirmed
- testUpdateCustomerAddressIfAccountIsLocked
\Magento\GraphQl\Customer\GetAddressesTest
- testGetCustomerAddressIfAccountIsNotConfirmed
- testGetCustomerAddressIfUserIsNotAuthorized
- testGetCustomerAddressIfAccountIsLocked
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.html
Metadata
Metadata
Assignees
Labels
Contribution DayTickets is good for start on Contribution DayTickets is good for start on Contribution Daygood first issueGood for newcomersGood for newcomerstest-coverage