public function SetStatusTest::setUp in Payment 8.2
Overrides UnitTestCase::setUp
File
- tests/
src/ Unit/ Plugin/ Action/ SetStatusTest.php, line 64
Class
- SetStatusTest
- @coversDefaultClass \Drupal\payment\Plugin\Action\SetStatus
Namespace
Drupal\Tests\payment\Unit\Plugin\ActionCode
public function setUp() : void {
$this->paymentStatusManager = $this
->createMock(PaymentStatusManagerInterface::class);
$this->pluginSelectorManager = $this
->createMock(PluginSelectorManagerInterface::class);
$this->stringTranslation = $this
->getStringTranslationStub();
$this->paymentStatusType = $this
->prophesize(PluginTypeInterface::class);
$this->paymentStatusType
->getPluginManager()
->willReturn($this->paymentStatusManager);
$configuration = [];
$plugin_definition = [];
$plugin_id = $this
->randomMachineName();
$this->sut = new SetStatus($configuration, $plugin_id, $plugin_definition, $this->stringTranslation, $this->pluginSelectorManager, $this->paymentStatusType
->reveal());
}