You are here

public function PaymentUnitTest::testGetCurrencyCode in Payment 8.2

Tests setCurrencyCode() and getCurrencyCode().

File

tests/src/Kernel/PaymentUnitTest.php, line 88

Class

PaymentUnitTest
\Drupal\payment\Entity\Payment unit test.

Namespace

Drupal\Tests\payment\Kernel

Code

public function testGetCurrencyCode() {
  $currency_code = 'ABC';
  $this
    ->assertTrue($this->payment
    ->setCurrencyCode($currency_code) instanceof PaymentInterface);
  $this
    ->assertIdentical($this->payment
    ->getCurrencyCode(), $currency_code);
}