You are here

function FixedRatesTest::testCreate in Currency 8.3

@covers ::create @covers ::__construct

File

tests/src/Unit/Plugin/Currency/ExchangeRateProvider/FixedRatesTest.php, line 56

Class

FixedRatesTest
@coversDefaultClass \Drupal\currency\Plugin\Currency\ExchangeRateProvider\FixedRates

Namespace

Drupal\Tests\currency\Unit\Plugin\Currency\ExchangeRateProvider

Code

function testCreate() {
  $container = $this
    ->createMock(ContainerInterface::class);
  $map = array(
    array(
      'config.factory',
      ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE,
      $this->configFactory,
    ),
  );
  $container
    ->expects($this
    ->any())
    ->method('get')
    ->willReturnMap($map);
  $sut = FixedRates::create($container, array(), '', array());
  $this
    ->assertInstanceOf(FixedRates::class, $sut);
}