You are here

public function UbercartPaymentPaneTestCase::testOrderTotalPreview in Ubercart 7.3

Tests operation of uc_payment_show_order_total_preview variable.

File

payment/uc_payment/tests/uc_payment.test, line 55
Ubercart payment related tests.

Class

UbercartPaymentPaneTestCase
Tests the checkout payment pane.

Code

public function testOrderTotalPreview() {
  variable_set('uc_payment_show_order_total_preview', TRUE);
  $this
    ->drupalGet('cart/checkout');
  $this
    ->assertText('Order total:');
  variable_set('uc_payment_show_order_total_preview', FALSE);
  $this
    ->drupalGet('cart/checkout');
  $this
    ->assertNoText('Order total:');
}