Skip to content

Commit

Permalink
tests fix
Browse files Browse the repository at this point in the history
  • Loading branch information
frosso committed Nov 15, 2024
1 parent 8f0468b commit d27bcd2
Showing 1 changed file with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -270,21 +270,4 @@ public function test_display_express_checkout_buttons_only_woopay() {
$this->assertStringNotContainsString( 'wcpay-express-checkout-button-separator', ob_get_contents() );
ob_end_clean();
}

public function test_display_express_checkout_buttons_only_payment_request() {
$this->mock_woopay_button_handler
->method( 'should_show_woopay_button' )
->willReturn( false );

$this->mock_express_checkout_helper
->method( 'is_checkout' )
->willReturn( true );

ob_start();
$this->express_checkout_button_display_handler->display_express_checkout_buttons();

$this->assertStringContainsString( 'wcpay-express-checkout-button-separator', ob_get_contents() );
$this->assertStringContainsString( 'display:none;', ob_get_contents() );
ob_end_clean();
}
}

0 comments on commit d27bcd2

Please sign in to comment.