This repository has been archived by the owner on Dec 19, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#975: [Test coverage] deleteCustomerAddress mutation.
- Loading branch information
1 parent
29cbd2f
commit e94edea
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -224,6 +224,28 @@ public function testDeleteAnotherCustomerAddress() | |
$this->graphQlMutation($mutation, [], '', $this->getCustomerAuthHeaders($userName, $password)); | ||
} | ||
|
||
/** | ||
* @magentoApiDataFixture Magento/Customer/_files/customer.php | ||
* @magentoApiDataFixture Magento/Customer/_files/customer_two_addresses.php | ||
* | ||
* @expectedException Exception | ||
* @expectedExceptionMessage Address "id" value should be specified | ||
*/ | ||
public function testDeleteCustomerAddressWithZeroAddressEntityId() | ||
{ | ||
$userName = '[email protected]'; | ||
$password = 'password'; | ||
$addressId = 0; | ||
|
||
$mutation | ||
= <<<MUTATION | ||
mutation { | ||
deleteCustomerAddress(id: {$addressId}) | ||
} | ||
MUTATION; | ||
$this->graphQlMutation($mutation, [], '', $this->getCustomerAuthHeaders($userName, $password)); | ||
} | ||
|
||
/** | ||
* @magentoApiDataFixture Magento/Customer/_files/customer.php | ||
* @magentoApiDataFixture Magento/Customer/_files/customer_two_addresses.php | ||
|