You are here

function EditCurrencyTest::testCreate in Currency 8.3

@covers ::create @covers ::__construct

File

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

Class

EditCurrencyTest
@coversDefaultClass \Drupal\currency\Controller\EditCurrency

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);
  $form = EditCurrency::create($container);
  $this
    ->assertInstanceOf(EditCurrency::class, $form);
}