Skip to content

Commit

Permalink
remove non-relevant test which was based on not existing anymore wc_p…
Browse files Browse the repository at this point in the history
…ayment_intent_id param
  • Loading branch information
Timur Karimov committed Jan 3, 2024
1 parent 6b0c3c4 commit dc61bf2
Showing 1 changed file with 0 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -353,31 +353,6 @@ public function tear_down() {
wcpay_get_test_container()->reset_all_replacements();
}

public function test_upe_process_payment_check_session_order_redirect_to_previous_order() {
$_POST['wc_payment_intent_id'] = 'pi_mock';
$mock_upe_gateway = $this->mock_payment_gateways[ Payment_Method::SEPA ];

$response = [
'dummy_result' => 'xyz',
];

// Arrange the order is being processed.
$order = WC_Helper_Order::create_order();
$order_id = $order->get_id();

// Arrange the DPPs to return a redirect.
$this->mock_dpps->expects( $this->once() )
->method( 'check_against_session_processing_order' )
->with( wc_get_order( $order ) )
->willReturn( $response );

// Act: process the order but redirect to the previous/session paid order.
$result = $mock_upe_gateway->process_payment( $order_id );

// Assert: the result of check_against_session_processing_order.
$this->assertSame( $response, $result );
}

public function test_process_redirect_setup_intent_succeded() {

$order = WC_Helper_Order::create_order();
Expand Down

0 comments on commit dc61bf2

Please sign in to comment.