Skip to content

Commit

Permalink
ENGCOM-6892: magento/magento2#: GraphQL. setPaymentMethodOnCart mutat…
Browse files Browse the repository at this point in the history
…ion. Extend list of required parameters for testSetPaymentMethodWithoutRequiredParameters #26846
  • Loading branch information
slavvka authored Feb 14, 2020
2 parents 0fdb065 + 10d87fe commit 97c8132
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,10 @@ public function testSetDisabledPaymentOnCart()
public function dataProviderSetPaymentMethodWithoutRequiredParameters(): array
{
return [
'missed_cart_id' => [
'cart_id: "", payment_method: {code: "' . Checkmo::PAYMENT_METHOD_CHECKMO_CODE . '"}',
'Required parameter "cart_id" is missing.'
],
'missed_payment_method_code' => [
'cart_id: "cart_id_value", payment_method: {code: ""}',
'Required parameter "code" for "payment_method" is missing.'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,10 @@ public function testSetPaymentMethodWithoutRequiredParameters(string $input, str
public function dataProviderSetPaymentMethodWithoutRequiredParameters(): array
{
return [
'missed_cart_id' => [
'cart_id: "", payment_method: {code: "' . Checkmo::PAYMENT_METHOD_CHECKMO_CODE . '"}',
'Required parameter "cart_id" is missing.'
],
'missed_payment_method_code' => [
'cart_id: "cart_id_value", payment_method: {code: ""}',
'Required parameter "code" for "payment_method" is missing.'
Expand Down

0 comments on commit 97c8132

Please sign in to comment.