You are here

public function BasicTest::setUp in Payment 8.2

Same name in this branch
  1. 8.2 tests/src/Unit/Plugin/Payment/MethodConfiguration/BasicTest.php \Drupal\Tests\payment\Unit\Plugin\Payment\MethodConfiguration\BasicTest::setUp()
  2. 8.2 tests/src/Unit/Plugin/Payment/Method/BasicTest.php \Drupal\Tests\payment\Unit\Plugin\Payment\Method\BasicTest::setUp()
  3. 8.2 tests/src/Unit/Plugin/Payment/LineItem/BasicTest.php \Drupal\Tests\payment\Unit\Plugin\Payment\LineItem\BasicTest::setUp()

Overrides PaymentMethodConfigurationBaseTestBase::setUp

File

tests/src/Unit/Plugin/Payment/MethodConfiguration/BasicTest.php, line 55

Class

BasicTest
@coversDefaultClass \Drupal\payment\Plugin\Payment\MethodConfiguration\Basic

Namespace

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

Code

public function setUp() : void {
  parent::setUp();
  $this->paymentStatusManager = $this
    ->createMock(PaymentStatusManagerInterface::class);
  $this->paymentStatusType = $this
    ->prophesize(PluginTypeInterface::class);
  $this->paymentStatusType
    ->getPluginManager()
    ->willReturn($this->paymentStatusManager);
  $this->pluginSelectorManager = $this
    ->createMock(PluginSelectorManagerInterface::class);
  $this->sut = new Basic([], '', $this->pluginDefinition, $this->stringTranslation, $this->moduleHandler, $this->pluginSelectorManager, $this->paymentStatusType
    ->reveal());
}