From 4069cc3470a5bedb8ef5171d18ffa7f10101cc6a Mon Sep 17 00:00:00 2001 From: Josh Betz Date: Wed, 9 Feb 2022 13:47:50 -0600 Subject: [PATCH] fix tests --- .../tests/legacy/unit-tests/rest-api/Tests/Version2/orders.php | 2 +- .../tests/legacy/unit-tests/rest-api/Tests/Version3/orders.php | 2 +- .../Version2/class-wc-rest-orders-v2-controller-test.php | 1 + .../Version3/class-wc-rest-orders-controller-tests.php | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/woocommerce/tests/legacy/unit-tests/rest-api/Tests/Version2/orders.php b/plugins/woocommerce/tests/legacy/unit-tests/rest-api/Tests/Version2/orders.php index 48ebc33632d..f5bbfe66bff 100644 --- a/plugins/woocommerce/tests/legacy/unit-tests/rest-api/Tests/Version2/orders.php +++ b/plugins/woocommerce/tests/legacy/unit-tests/rest-api/Tests/Version2/orders.php @@ -769,7 +769,7 @@ class WC_Tests_API_Orders_V2 extends WC_REST_Unit_Test_Case { $data = $response->get_data(); $properties = $data['schema']['properties']; - $this->assertEquals( 42, count( $properties ) ); + $this->assertEquals( 43, count( $properties ) ); $this->assertArrayHasKey( 'id', $properties ); } diff --git a/plugins/woocommerce/tests/legacy/unit-tests/rest-api/Tests/Version3/orders.php b/plugins/woocommerce/tests/legacy/unit-tests/rest-api/Tests/Version3/orders.php index 38afab6b6b9..aa568baf3e8 100644 --- a/plugins/woocommerce/tests/legacy/unit-tests/rest-api/Tests/Version3/orders.php +++ b/plugins/woocommerce/tests/legacy/unit-tests/rest-api/Tests/Version3/orders.php @@ -1139,7 +1139,7 @@ class WC_Tests_API_Orders extends WC_REST_Unit_Test_Case { $data = $response->get_data(); $properties = $data['schema']['properties']; - $this->assertEquals( 42, count( $properties ) ); + $this->assertEquals( 43, count( $properties ) ); $this->assertArrayHasKey( 'id', $properties ); } diff --git a/plugins/woocommerce/tests/php/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller-test.php b/plugins/woocommerce/tests/php/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller-test.php index 69fd9efca45..f9379289e68 100644 --- a/plugins/woocommerce/tests/php/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller-test.php +++ b/plugins/woocommerce/tests/php/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller-test.php @@ -66,6 +66,7 @@ class WC_REST_Order_V2_Controller_Test extends WC_REST_Unit_Test_case { 'coupon_lines', 'currency_symbol', 'refunds', + 'payment_url', ); } diff --git a/plugins/woocommerce/tests/php/includes/rest-api/Controllers/Version3/class-wc-rest-orders-controller-tests.php b/plugins/woocommerce/tests/php/includes/rest-api/Controllers/Version3/class-wc-rest-orders-controller-tests.php index ae7ada4daba..2006981dab5 100644 --- a/plugins/woocommerce/tests/php/includes/rest-api/Controllers/Version3/class-wc-rest-orders-controller-tests.php +++ b/plugins/woocommerce/tests/php/includes/rest-api/Controllers/Version3/class-wc-rest-orders-controller-tests.php @@ -66,6 +66,7 @@ class WC_REST_Orders_Controller_Tests extends WC_REST_Unit_Test_Case { 'coupon_lines', 'currency_symbol', 'refunds', + 'payment_url', ); }