mirror of
https://github.com/wp-graphql/wp-graphql-woocommerce.git
synced 2026-08-14 12:53:44 +02:00
"shippingMethod" field type changed to [String].
This commit is contained in:
committed by
Geoff Taylor
parent
f9198d0e0c
commit
b1f9cfa661
@@ -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',
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user