public function BasicTest::setUp in Payment 8.2
Same name in this branch
- 8.2 tests/src/Unit/Plugin/Payment/MethodConfiguration/BasicTest.php \Drupal\Tests\payment\Unit\Plugin\Payment\MethodConfiguration\BasicTest::setUp()
- 8.2 tests/src/Unit/Plugin/Payment/Method/BasicTest.php \Drupal\Tests\payment\Unit\Plugin\Payment\Method\BasicTest::setUp()
- 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\MethodConfigurationCode
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());
}