You are here

public function PaymentMethodBaseTest::setUp in Payment 8.2

Overrides PaymentMethodBaseTestBase::setUp

File

tests/src/Unit/Plugin/Payment/Method/PaymentMethodBaseTest.php, line 44

Class

PaymentMethodBaseTest
@coversDefaultClass \Drupal\payment\Plugin\Payment\Method\PaymentMethodBase

Namespace

Drupal\Tests\payment\Unit\Plugin\Payment\Method

Code

public function setUp() : void {
  parent::setUp();
  $this->pluginDefinition['label'] = $this
    ->randomMachineName();
  $this->moduleHandler = $this
    ->createMock(ModuleHandlerInterface::class);
  $this->sut = $this
    ->getMockBuilder(PaymentMethodBase::class)
    ->setConstructorArgs([
    [],
    '',
    $this->pluginDefinition,
    $this->moduleHandler,
    $this->eventDispatcher,
    $this->token,
    $this->paymentStatusManager,
  ])
    ->getMockForAbstractClass();
}