Fixed unit tests
This commit is contained in:
parent
81dae70033
commit
a133e56ebd
|
@ -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' ),
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue