You are here

public function BasicTest::testGetCurrencyCode in Payment 8.2

@covers ::setCurrencyCode @covers ::getCurrencyCode

File

tests/src/Unit/Plugin/Payment/LineItem/BasicTest.php, line 104

Class

BasicTest
@coversDefaultClass \Drupal\payment\Plugin\Payment\LineItem\Basic

Namespace

Drupal\Tests\payment\Unit\Plugin\Payment\LineItem

Code

public function testGetCurrencyCode() {
  $currency_code = $this
    ->randomMachineName();
  $this
    ->assertSame($this->sut, $this->sut
    ->setCurrencyCode($currency_code));
  $this
    ->assertSame($currency_code, $this->sut
    ->getCurrencyCode());
}