You are here

public function PaymentMethodConfigurationBaseTestBase::setUp in Payment 8.2

Overrides UnitTestCase::setUp

1 call to PaymentMethodConfigurationBaseTestBase::setUp()
BasicTest::setUp in tests/src/Unit/Plugin/Payment/MethodConfiguration/BasicTest.php
2 methods override PaymentMethodConfigurationBaseTestBase::setUp()
BasicTest::setUp in tests/src/Unit/Plugin/Payment/MethodConfiguration/BasicTest.php
PaymentMethodConfigurationBaseTest::setUp in tests/src/Unit/Plugin/Payment/MethodConfiguration/PaymentMethodConfigurationBaseTest.php

File

tests/src/Unit/Plugin/Payment/MethodConfiguration/PaymentMethodConfigurationBaseTestBase.php, line 38

Class

PaymentMethodConfigurationBaseTestBase
Provides a base for tests that cover classes that extend \Drupal\idepaymental\Plugin\Payment\MethodConfiguration\PaymentMethodConfigurationBase

Namespace

Drupal\Tests\payment\Unit\Plugin\Payment\MethodConfiguration

Code

public function setUp() : void {
  $this->moduleHandler = $this
    ->createMock(ModuleHandlerInterface::class);
  $this->stringTranslation = $this
    ->getStringTranslationStub();
  $this->pluginDefinition = [
    'description' => $this
      ->randomMachineName(),
    'label' => $this
      ->randomMachineName(),
  ];
}