You are here

function EditCurrencyLocaleTest::testCreate in Currency 8.3

@covers ::create @covers ::__construct

File

tests/src/Unit/Controller/EditCurrencyLocaleTest.php, line 45

Class

EditCurrencyLocaleTest
@coversDefaultClass \Drupal\currency\Controller\EditCurrencyLocale

Namespace

Drupal\Tests\currency\Unit\Controller

Code

function testCreate() {
  $container = $this
    ->createMock(ContainerInterface::class);
  $map = array(
    array(
      'string_translation',
      ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE,
      $this->stringTranslation,
    ),
  );
  $container
    ->expects($this
    ->any())
    ->method('get')
    ->willReturnMap($map);
  $sut = EditCurrencyLocale::create($container);
  $this
    ->assertInstanceOf(EditCurrencyLocale::class, $sut);
}