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

magento/graphql-ce#: deleteCustomerAddress. [Test coverage] Address "id" value should be specified. #1059

Merged
merged 2 commits into from
Nov 14, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@ public function resolve(
throw new GraphQlAuthorizationException(__('The current customer isn\'t authorized.'));
}

if (empty($args['id'])) {
throw new GraphQlInputException(__('Address "id" value should be specified'));
}

$address = $this->getCustomerAddress->execute((int)$args['id'], $context->getUserId());
$this->deleteCustomerAddress->execute($address);
return true;
Expand Down