@@ -22,8 +22,8 @@ public static function paymentPlanProvider(): array
2222 'plan_key ' => 'general_4_0_0 ' ,
2323 'is_pay_later_only ' => false ,
2424 'is_pnx_only ' => true ,
25- 'is_both_pnx_and_pay_later ' => false ,
2625 'is_pay_now ' => false ,
26+ 'payment_method ' => 'pnx ' ,
2727 ]
2828 ],
2929 'paylater_deferred_months ' => [
@@ -37,8 +37,8 @@ public static function paymentPlanProvider(): array
3737 'plan_key ' => 'general_1_0_3 ' ,
3838 'is_pay_later_only ' => true ,
3939 'is_pnx_only ' => false ,
40- 'is_both_pnx_and_pay_later ' => false ,
4140 'is_pay_now ' => false ,
41+ 'payment_method ' => 'paylater ' ,
4242 ]
4343 ],
4444 'paylater_deferred_days ' => [
@@ -52,23 +52,8 @@ public static function paymentPlanProvider(): array
5252 'plan_key ' => 'general_1_30_0 ' ,
5353 'is_pay_later_only ' => true ,
5454 'is_pnx_only ' => false ,
55- 'is_both_pnx_and_pay_later ' => false ,
56- 'is_pay_now ' => false ,
57- ]
58- ],
59- 'pnx_and_paylater ' => [
60- 'params ' => [
61- 'kind ' => 'general ' ,
62- 'installments_count ' => 3 ,
63- 'deferred_days ' => 15 ,
64- 'deferred_months ' => 0 ,
65- ],
66- 'expected ' => [
67- 'plan_key ' => 'general_3_15_0 ' ,
68- 'is_pay_later_only ' => false ,
69- 'is_pnx_only ' => false ,
70- 'is_both_pnx_and_pay_later ' => true ,
7155 'is_pay_now ' => false ,
56+ 'payment_method ' => 'paylater ' ,
7257 ]
7358 ],
7459 'pay_now ' => [
@@ -82,8 +67,8 @@ public static function paymentPlanProvider(): array
8267 'plan_key ' => 'general_1_0_0 ' ,
8368 'is_pay_later_only ' => false ,
8469 'is_pnx_only ' => false ,
85- 'is_both_pnx_and_pay_later ' => false ,
8670 'is_pay_now ' => true ,
71+ 'payment_method ' => 'paynow ' ,
8772 ]
8873 ]
8974 ];
@@ -135,7 +120,7 @@ public function getDeferredMonths(): int
135120 $ this ->assertEquals ($ expected ['plan_key ' ], $ paymentPlanImplementation ->getPlanKey ());
136121 $ this ->assertEquals ($ expected ['is_pay_later_only ' ], $ paymentPlanImplementation ->isPayLaterOnly ());
137122 $ this ->assertEquals ($ expected ['is_pnx_only ' ], $ paymentPlanImplementation ->isPnXOnly ());
138- $ this ->assertEquals ($ expected ['is_both_pnx_and_pay_later ' ], $ paymentPlanImplementation ->isBothPnxAndPayLater ());
139123 $ this ->assertEquals ($ expected ['is_pay_now ' ], $ paymentPlanImplementation ->isPayNow ());
124+ $ this ->assertEquals ($ expected ['payment_method ' ], $ paymentPlanImplementation ->getPaymentMethod ());
140125 }
141126}
0 commit comments