function CurrencyTest::testGetRoundingStepBySubunits in Currency 8.3
@covers ::getRoundingStep
File
- tests/
src/ Unit/ Entity/ CurrencyTest.php, line 101
Class
- CurrencyTest
- @coversDefaultClass \Drupal\currency\Entity\Currency
Namespace
Drupal\Tests\currency\Unit\EntityCode
function testGetRoundingStepBySubunits() {
$subunits = 5;
$rounding_step = '0.200000';
$this->sut
->setSubunits($subunits);
$this
->assertSame($rounding_step, $this->sut
->getRoundingStep());
}