protected function PaymentEnteredEventTest::setUp in Ubercart 8.4
Overrides EventTestBase::setUp
File
- payment/
uc_payment/ tests/ src/ Unit/ Integration/ Event/ PaymentEnteredEventTest.php, line 22
Class
- PaymentEnteredEventTest
- Checks that the event "uc_payment_entered" is correctly defined.
Namespace
Drupal\Tests\uc_payment\Unit\Integration\EventCode
protected function setUp() : void {
parent::setUp();
// Must enable our module to make our plugins discoverable.
$this
->enableModule('uc_payment', [
'Drupal\\uc_payment' => __DIR__ . '/../../../../../src',
]);
// Tell the plugin manager where to look for plugins.
$this->moduleHandler
->getModuleDirectories()
->willReturn([
'uc_payment' => __DIR__ . '/../../../../../',
]);
// Create a real plugin manager with a mock moduleHandler.
$this->eventManager = new RulesEventManager($this->moduleHandler
->reveal(), $this->entityTypeBundleInfo
->reveal());
}