You are here

public function CommerceExchangerCalculatorTest::testExchangeRates in Commerce Exchanger 8

@covers ::getExchangeRates

File

tests/src/Kernel/CommerceExchangerCalculatorTest.php, line 124

Class

CommerceExchangerCalculatorTest
Tests the exchanger calculator.

Namespace

Drupal\Tests\commerce_exchanger\Kernel

Code

public function testExchangeRates() {
  $this
    ->assertArrayHasKey('HRK', $this->container
    ->get('commerce_exchanger.calculate')
    ->getExchangeRates());
  $this
    ->assertArrayHasKey('USD', $this->container
    ->get('commerce_exchanger.calculate')
    ->getExchangeRates());
}