Skip to content

Commit dc61bf2

Browse files
author
Timur Karimov
committed
remove non-relevant test which was based on not existing anymore wc_payment_intent_id param
1 parent 6b0c3c4 commit dc61bf2

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

tests/unit/payment-methods/test-class-upe-split-payment-gateway.php

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -353,31 +353,6 @@ public function tear_down() {
353353
wcpay_get_test_container()->reset_all_replacements();
354354
}
355355

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-
381356
public function test_process_redirect_setup_intent_succeded() {
382357

383358
$order = WC_Helper_Order::create_order();

0 commit comments

Comments
 (0)