"shippingMethod" field type changed to [String].

This commit is contained in:
Geoff Taylor
2020-05-11 21:22:28 -04:00
committed by Geoff Taylor
parent f9198d0e0c
commit b1f9cfa661
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ class Checkout {
'description' => __( 'Payment method ID.', 'wp-graphql-woocommerce' ),
),
'shippingMethod' => array(
'type' => 'String',
'type' => array( 'list_of' => 'String' ),
'description' => __( 'Order shipping method', 'wp-graphql-woocommerce' ),
),
'shipToDifferentAddress' => array(
@@ -159,7 +159,7 @@ $I->wantTo('checkout');
$checkout_input = array(
'clientMutationId' => 'someId',
'paymentMethod' => 'bacs',
'shippingMethod' => 'flat rate',
'shippingMethod' => array( 'flat rate' ),
'billing' => array(
'firstName' => 'May',
'lastName' => 'Parker',
+4 -4
View File
@@ -278,7 +278,7 @@ class CheckoutMutationsTest extends \Codeception\TestCase\WPTestCase {
$input = array(
'clientMutationId' => 'someId',
'paymentMethod' => 'bacs',
'shippingMethod' => 'flat rate',
'shippingMethod' => array( 'flat rate' ),
'billing' => array(
'firstName' => 'May',
'lastName' => 'Parker',
@@ -484,7 +484,7 @@ class CheckoutMutationsTest extends \Codeception\TestCase\WPTestCase {
$input = array(
'clientMutationId' => 'someId',
'paymentMethod' => 'bacs',
'shippingMethod' => 'flat rate',
'shippingMethod' => array( 'flat rate' ),
'billing' => array(
'firstName' => 'May',
'lastName' => 'Parker',
@@ -676,7 +676,7 @@ class CheckoutMutationsTest extends \Codeception\TestCase\WPTestCase {
$input = array(
'clientMutationId' => 'someId',
'paymentMethod' => 'bacs',
'shippingMethod' => 'flat rate',
'shippingMethod' => array( 'flat rate' ),
'billing' => array(
'firstName' => 'May',
'lastName' => 'Parker',
@@ -880,7 +880,7 @@ class CheckoutMutationsTest extends \Codeception\TestCase\WPTestCase {
'paymentMethod' => 'bacs',
'isPaid' => true,
'transactionId' => 'transaction_id',
'shippingMethod' => 'flat rate',
'shippingMethod' => array( 'flat rate' ),
'billing' => array(
'firstName' => 'May',
'lastName' => 'Parker',