You are here

public function SupportedCurrencyTest::setUp in Payment 8.2

Overrides UnitTestCase::setUp

File

tests/src/Unit/Plugin/Payment/Method/SupportedCurrencyTest.php, line 46

Class

SupportedCurrencyTest
@coversDefaultClass \Drupal\payment\Plugin\Payment\Method\SupportedCurrency

Namespace

Drupal\Tests\payment\Unit\Plugin\Payment\Method

Code

public function setUp() : void {
  $this->currencyCode = $this
    ->randomMachineName();
  $this->maximumAmount = mt_rand();
  $this->minimumAmount = mt_rand();
  $this->sut = new SupportedCurrency($this->currencyCode, $this->minimumAmount, $this->maximumAmount);
}