public function PaymentTypeBaseTest::setUp in Payment 8.2
Overrides UnitTestCase::setUp
File
- tests/
src/ Unit/ Plugin/ Payment/ Type/ PaymentTypeBaseTest.php, line 36
Class
- PaymentTypeBaseTest
- @coversDefaultClass \Drupal\payment\Plugin\Payment\Type\PaymentTypeBase
Namespace
Drupal\Tests\payment\Unit\Plugin\Payment\TypeCode
public function setUp() : void {
$this->eventDispatcher = $this
->createMock(EventDispatcherInterface::class);
$configuration = [];
$plugin_id = $this
->randomMachineName();
$plugin_definition = [];
$this->sut = $this
->getMockBuilder(PaymentTypeBase::class)
->setConstructorArgs([
$configuration,
$plugin_id,
$plugin_definition,
$this->eventDispatcher,
])
->getMockForAbstractClass();
}