Fixed unit tests

This commit is contained in:
Claudio Sanches 2020-08-25 16:13:49 -03:00
parent 81dae70033
commit a133e56ebd
2 changed files with 12 additions and 4 deletions

View File

@ -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' ),

View File

@ -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',