Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wjrosa committed Dec 30, 2024
1 parent de376ed commit 59fc2a2
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,15 @@ public function provide_test_is_equal_payment_method() {
return [
'Unknown method' => [
'token type' => 'unknown',
'payment method' => (object) [],
'payment method' => (object) [
'type' => 'unknown',
],
'expected' => false,
],
'CC, not equal' => [
'token type' => 'CC',
'payment_method' => (object) [
'type' => WC_Stripe_Payment_Methods::CARD,
'card' => (object) [
'fingerprint' => '456def',
],
Expand All @@ -59,6 +62,7 @@ public function provide_test_is_equal_payment_method() {
'CC, equal' => [
'token type' => 'CC',
'payment method' => (object) [
'type' => WC_Stripe_Payment_Methods::CARD,
'card' => (object) [
'fingerprint' => '123abc',
],
Expand All @@ -68,6 +72,7 @@ public function provide_test_is_equal_payment_method() {
'SEPA, equal' => [
'token type' => WC_Stripe_Payment_Methods::SEPA,
'payment method' => (object) [
'type' => WC_Stripe_Payment_Methods::SEPA_DEBIT,
'sepa_debit' => (object) [
'fingerprint' => '123abc',
],
Expand All @@ -77,6 +82,7 @@ public function provide_test_is_equal_payment_method() {
'Link, equal' => [
'token type' => WC_Stripe_Payment_Methods::LINK,
'payment method' => (object) [
'type' => WC_Stripe_Payment_Methods::LINK,
'link' => (object) [
'email' => '[email protected]',
],
Expand All @@ -86,6 +92,7 @@ public function provide_test_is_equal_payment_method() {
'CashApp, equal' => [
'token type' => WC_Stripe_Payment_Methods::CASHAPP_PAY,
'payment method' => (object) [
'type' => WC_Stripe_Payment_Methods::CASHAPP_PAY,
'cashapp' => (object) [
'cashtag' => '$test_cashtag',
],
Expand Down

0 comments on commit 59fc2a2

Please sign in to comment.