From a133e56ebd89ec957fdbb834ea83931e64a80130 Mon Sep 17 00:00:00 2001 From: Claudio Sanches Date: Tue, 25 Aug 2020 16:13:49 -0300 Subject: [PATCH] Fixed unit tests --- .../rest-api/Tests/Version2/payment-gateways.php | 8 ++++++-- .../rest-api/Tests/Version3/payment-gateways.php | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/tests/legacy/unit-tests/rest-api/Tests/Version2/payment-gateways.php b/tests/legacy/unit-tests/rest-api/Tests/Version2/payment-gateways.php index 669350dc8e4..5b69b55494c 100644 --- a/tests/legacy/unit-tests/rest-api/Tests/Version2/payment-gateways.php +++ b/tests/legacy/unit-tests/rest-api/Tests/Version2/payment-gateways.php @@ -5,6 +5,10 @@ * @package WooCommerce\Tests\API * @since 3.0.0 */ + +/** + * Payment gateway test class. + */ class Payment_Gateways_V2 extends WC_REST_Unit_Test_Case { /** @@ -102,11 +106,11 @@ class Payment_Gateways_V2 extends WC_REST_Unit_Test_Case { $this->assertEquals( array( 'id' => 'paypal', - 'title' => 'PayPal Standard', + 'title' => 'PayPal', 'description' => "Pay via PayPal; you can pay with your credit card if you don't have a PayPal account.", 'order' => '', 'enabled' => false, - 'method_title' => 'PayPal', + 'method_title' => 'PayPal Standard', 'method_description' => 'PayPal Standard redirects customers to PayPal to enter their payment information.', 'settings' => array_diff_key( $this->get_settings( 'WC_Gateway_Paypal' ), diff --git a/tests/legacy/unit-tests/rest-api/Tests/Version3/payment-gateways.php b/tests/legacy/unit-tests/rest-api/Tests/Version3/payment-gateways.php index b528c96e460..20f9245c8bd 100644 --- a/tests/legacy/unit-tests/rest-api/Tests/Version3/payment-gateways.php +++ b/tests/legacy/unit-tests/rest-api/Tests/Version3/payment-gateways.php @@ -5,6 +5,10 @@ * @package WooCommerce\Tests\API * @since 3.5.0 */ + +/** + * Payment gateway test class. + */ class Payment_Gateways extends WC_REST_Unit_Test_Case { /** @@ -105,11 +109,11 @@ class Payment_Gateways extends WC_REST_Unit_Test_Case { $this->assertEquals( array( 'id' => 'paypal', - 'title' => 'PayPal Standard', + 'title' => 'PayPal', 'description' => "Pay via PayPal; you can pay with your credit card if you don't have a PayPal account.", 'order' => '', 'enabled' => false, - 'method_title' => 'PayPal', + 'method_title' => 'PayPal Standard', 'method_description' => 'PayPal Standard redirects customers to PayPal to enter their payment information.', 'method_supports' => array( 'products',