You are here

function CurrencyTest::testGetRoundingStep in Currency 8.3

@covers ::getRoundingStep @covers ::setRoundingStep

File

tests/src/Unit/Entity/CurrencyTest.php, line 91

Class

CurrencyTest
@coversDefaultClass \Drupal\currency\Entity\Currency

Namespace

Drupal\Tests\currency\Unit\Entity

Code

function testGetRoundingStep() {
  $rounding_step = mt_rand();
  $this
    ->assertSame($this->sut, $this->sut
    ->setRoundingStep($rounding_step));
  $this
    ->assertSame($rounding_step, $this->sut
    ->getRoundingStep());
}