File tree Expand file tree Collapse file tree 1 file changed +0
-25
lines changed
tests/unit/payment-methods Expand file tree Collapse file tree 1 file changed +0
-25
lines changed Original file line number Diff line number Diff line change @@ -353,31 +353,6 @@ public function tear_down() {
353
353
wcpay_get_test_container ()->reset_all_replacements ();
354
354
}
355
355
356
- public function test_upe_process_payment_check_session_order_redirect_to_previous_order () {
357
- $ _POST ['wc_payment_intent_id ' ] = 'pi_mock ' ;
358
- $ mock_upe_gateway = $ this ->mock_payment_gateways [ Payment_Method::SEPA ];
359
-
360
- $ response = [
361
- 'dummy_result ' => 'xyz ' ,
362
- ];
363
-
364
- // Arrange the order is being processed.
365
- $ order = WC_Helper_Order::create_order ();
366
- $ order_id = $ order ->get_id ();
367
-
368
- // Arrange the DPPs to return a redirect.
369
- $ this ->mock_dpps ->expects ( $ this ->once () )
370
- ->method ( 'check_against_session_processing_order ' )
371
- ->with ( wc_get_order ( $ order ) )
372
- ->willReturn ( $ response );
373
-
374
- // Act: process the order but redirect to the previous/session paid order.
375
- $ result = $ mock_upe_gateway ->process_payment ( $ order_id );
376
-
377
- // Assert: the result of check_against_session_processing_order.
378
- $ this ->assertSame ( $ response , $ result );
379
- }
380
-
381
356
public function test_process_redirect_setup_intent_succeded () {
382
357
383
358
$ order = WC_Helper_Order::create_order ();
You can’t perform that action at this time.
0 commit comments