public function PaymentMethodConfigurationBaseTest::setUp in Payment 8.2
Overrides PaymentMethodConfigurationBaseTestBase::setUp
File
- tests/
src/ Unit/ Plugin/ Payment/ MethodConfiguration/ PaymentMethodConfigurationBaseTest.php, line 27
Class
- PaymentMethodConfigurationBaseTest
- @coversDefaultClass \Drupal\payment\Plugin\Payment\MethodConfiguration\PaymentMethodConfigurationBase
Namespace
Drupal\Tests\payment\Unit\Plugin\Payment\MethodConfigurationCode
public function setUp() : void {
$this->moduleHandler = $this
->createMock(ModuleHandlerInterface::class);
$this->stringTranslation = $this
->getStringTranslationStub();
$this->pluginDefinition = array(
'description' => $this
->randomMachineName(),
'label' => $this
->randomMachineName(),
);
$this->sut = $this
->getMockBuilder(PaymentMethodConfigurationBase::class)
->setConstructorArgs(array(
[],
'',
$this->pluginDefinition,
$this->stringTranslation,
$this->moduleHandler,
))
->getMockForAbstractClass();
}