You are here

public function CurrencyTest::testGetCurrencyAmountFormatterManager in Currency 8.3

@covers ::setCurrencyAmountFormatterManager @covers ::getCurrencyAmountFormatterManager

File

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

Class

CurrencyTest
@coversDefaultClass \Drupal\currency\Entity\Currency

Namespace

Drupal\Tests\currency\Unit\Entity

Code

public function testGetCurrencyAmountFormatterManager() {
  $method = new \ReflectionMethod($this->sut, 'getCurrencyAmountFormatterManager');
  $method
    ->setAccessible(TRUE);
  $this
    ->assertSame($this->sut, $this->sut
    ->setCurrencyAmountFormatterManager($this->currencyAmountFormatterManager));
  $this
    ->assertSame($this->currencyAmountFormatterManager, $method
    ->invoke($this->sut));
}