You are here

public function LineItemCollectionTest::testGetCurrencyCode in Payment 8.2

@covers ::getCurrencyCode @covers ::setCurrencyCode

File

tests/src/Unit/LineItemCollectionTest.php, line 92

Class

LineItemCollectionTest
@coversDefaultClass \Drupal\payment\LineItemCollection

Namespace

Drupal\Tests\payment\Unit

Code

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