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\KernelCode
public function testExchangeRates() {
$this
->assertArrayHasKey('HRK', $this->container
->get('commerce_exchanger.calculate')
->getExchangeRates());
$this
->assertArrayHasKey('USD', $this->container
->get('commerce_exchanger.calculate')
->getExchangeRates());
}