You are here

public function ShippingAdminIntegrationTest::testShipmentTabAndOperation in Commerce Currency Resolver 8

Tests that Shipments tab and operation visibility.

Overrides ShipmentAdminTest::testShipmentTabAndOperation

File

modules/shipping/tests/src/FunctionalJavascript/ShippingAdminIntegrationTest.php, line 96

Class

ShippingAdminIntegrationTest
Tests the shipment admin UI.

Namespace

Drupal\Tests\commerce_currency_resolver_shipping\FunctionalJavascript

Code

public function testShipmentTabAndOperation() {
  $this
    ->drupalGet($this->order
    ->toUrl());

  // Verify that we have different currencies on order and
  // currently resolved one.
  $this
    ->assertEqual($this->order
    ->getTotalPrice()
    ->getCurrencyCode(), 'USD');
  $this
    ->assertEqual($this->currentCurrency
    ->getCurrency(), 'VUV');
  $this
    ->assertEqual(\Drupal::service('commerce_currency_resolver.current_currency')
    ->getCurrency(), 'VUV');
  parent::testShipmentTabAndOperation();
}