You are here

function EditPaymentTest::testCreate in Payment 8.2

@covers ::create @covers ::__construct

File

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

Class

EditPaymentTest
@coversDefaultClass \Drupal\payment\Controller\EditPayment

Namespace

Drupal\Tests\payment\Unit\Controller

Code

function testCreate() {
  $container = $this
    ->createMock(ContainerInterface::class);
  $container
    ->expects($this
    ->once())
    ->method('get')
    ->with('string_translation')
    ->willReturn($this->stringTranslation);
  $sut = EditPayment::create($container);
  $this
    ->assertInstanceOf(EditPayment::class, $sut);
}