function PaymentStatusDeleteFormTest::testCreate in Payment 8.2
@covers ::create @covers ::__construct
File
- tests/
src/ Unit/ Entity/ PaymentStatus/ PaymentStatusDeleteFormTest.php, line 78
Class
- PaymentStatusDeleteFormTest
- @coversDefaultClass \Drupal\payment\Entity\PaymentStatus\PaymentStatusDeleteForm
Namespace
Drupal\Tests\payment\Unit\Entity\PaymentStatusCode
function testCreate() {
$container = $this
->createMock(ContainerInterface::class);
$map = [
[
'payment.logger',
ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE,
$this->logger,
],
[
'string_translation',
ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE,
$this->stringTranslation,
],
];
$container
->expects($this
->any())
->method('get')
->willReturnMap($map);
$sut = PaymentStatusDeleteForm::create($container);
$this
->assertInstanceOf(PaymentStatusDeleteForm::class, $sut);
}