Skip to content

Commit ff7e1de

Browse files
ENGCOM-6278: magento/graphql-ce#: deleteCustomerAddress. [Test coverage] Address 'id' value should be specified. #1059
- Merge Pull Request magento/graphql-ce#1059 from magento/graphql-ce:test-coverage-deleteCustomerAddress - Merged commits: 1. e94edea 2. baec752
2 parents 2635bd8 + baec752 commit ff7e1de

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

app/code/Magento/CustomerGraphQl/Model/Resolver/DeleteCustomerAddress.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,6 @@ public function resolve(
5858
throw new GraphQlAuthorizationException(__('The current customer isn\'t authorized.'));
5959
}
6060

61-
if (empty($args['id'])) {
62-
throw new GraphQlInputException(__('Address "id" value should be specified'));
63-
}
64-
6561
$address = $this->getCustomerAddress->execute((int)$args['id'], $context->getUserId());
6662
$this->deleteCustomerAddress->execute($address);
6763
return true;

0 commit comments

Comments
 (0)