You are here

function EditPaymentStatusTest::testCreate in Payment 8.2

@covers ::create @covers ::__construct

File

tests/src/Unit/Controller/EditPaymentStatusTest.php, line 44

Class

EditPaymentStatusTest
@coversDefaultClass \Drupal\payment\Controller\EditPaymentStatus

Namespace

Drupal\Tests\payment\Unit\Controller

Code

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