public function PaymentMethodConfigurationDeleteFormTest::setUp in Payment 8.2
Overrides UnitTestCase::setUp
File
- tests/
src/ Unit/ Entity/ PaymentMethodConfiguration/ PaymentMethodConfigurationDeleteFormTest.php, line 60
Class
- PaymentMethodConfigurationDeleteFormTest
- @coversDefaultClass \Drupal\payment\Entity\PaymentMethodConfiguration\PaymentMethodConfigurationDeleteForm
Namespace
Drupal\Tests\payment\Unit\Entity\PaymentMethodConfigurationCode
public function setUp() : void {
$this->logger = $this
->createMock(LoggerInterface::class);
$this->paymentMethodConfiguration = $this
->getMockBuilder(PaymentMethodConfiguration::class)
->disableOriginalConstructor()
->getMock();
$this->stringTranslation = $this
->getStringTranslationStub();
$this->messenger = $this
->createMock(MessengerInterface::class);
$this->sut = new PaymentMethodConfigurationDeleteForm($this->stringTranslation, $this->logger);
$this->sut
->setEntity($this->paymentMethodConfiguration);
$this->sut
->setMessenger($this->messenger);
}