public function CurrencyRepositoryTest::testGetDefaultFractionDigits in Commerce Core 8.2
Tests getting the currency default fraction digits.
@covers ::getDefaultFractionDigits @dataProvider fractionDigitsData
Parameters
string $currency_code: The currency code.
int $expected_fraction_digits: The expected fraction digits.
File
- modules/
price/ tests/ src/ Kernel/ CurrencyRepositoryTest.php, line 103
Class
- CurrencyRepositoryTest
- Tests the currency repository.
Namespace
Drupal\Tests\commerce_price\KernelCode
public function testGetDefaultFractionDigits(string $currency_code, int $expected_fraction_digits) {
$this
->assertEquals($this->currencyRepository
->getDefaultFractionDigits($currency_code), $expected_fraction_digits);
}