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

Commit

Permalink
Extend test testSetNewShippingAddressWithMissedRequiredParameters wit…
Browse files Browse the repository at this point in the history
…h negative case when street was omitted

Signed-off-by: Tomash Khamlai <[email protected]>
  • Loading branch information
TomashKhamlai committed Oct 28, 2019
1 parent 68d2137 commit 1a42940
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -474,11 +474,16 @@ public function dataProviderUpdateWithMissedRequiredParameters(): array
],
'missed_city' => [
'shipping_addresses: [ { address: { save_in_address_book: false } } ]',
'Field CartAddressInput.city of required type String! was not provided'
'Field CartAddressInput.city of required type String! was not provided',
],
'missed_cart_id' => [
'shipping_addresses: {}',
'Required parameter "cart_id" is missing'
'Required parameter "cart_id" is missing',
],
'missing_street' => [
'cart_id: "cart_id_value" shipping_addresses: ' .
'[{address: {country_code: "US" firstname: "J" lastname: "D" telephone: "+" city: "C"}}]',
'Required parameter "street" is missing',
]
];
}
Expand Down

0 comments on commit 1a42940

Please sign in to comment.