You are here

public function CurrencyRepositoryTest::testGetAll in Commerce Core 8.2

@covers ::getAll

File

modules/price/tests/src/Kernel/CurrencyRepositoryTest.php, line 73

Class

CurrencyRepositoryTest
Tests the currency repository.

Namespace

Drupal\Tests\commerce_price\Kernel

Code

public function testGetAll() {
  $expected = [
    'EUR' => $this->currencyRepository
      ->get('EUR'),
    'USD' => $this->currencyRepository
      ->get('USD'),
  ];
  $this
    ->assertEquals($expected, $this->currencyRepository
    ->getAll());
}