protected function ConfigurePaymentTypeTest::setUp in Payment 8.2
Overrides UnitTestCase::setUp
File
- tests/
src/ Unit/ Controller/ ConfigurePaymentTypeTest.php, line 50
Class
- ConfigurePaymentTypeTest
- @coversDefaultClass \Drupal\payment\Controller\ConfigurePaymentType
Namespace
Drupal\Tests\payment\Unit\ControllerCode
protected function setUp() : void {
$this->formBuilder = $this
->createMock(FormBuilderInterface::class);
$this->paymentTypeManager = $this
->createMock(PaymentTypeManagerInterface::class);
$this->stringTranslation = $this
->getStringTranslationStub();
$this->sut = new ConfigurePaymentType($this->formBuilder, $this->paymentTypeManager, $this->stringTranslation);
}