protected function OrderEventTestBase::setUp in Ubercart 8.4
Overrides EventTestBase::setUp
File
- uc_order/
tests/ src/ Unit/ Integration/ Event/ OrderEventTestBase.php, line 20
Class
- OrderEventTestBase
- Base class containing common code for uc_order event tests.
Namespace
Drupal\Tests\uc_order\Unit\Integration\EventCode
protected function setUp() : void {
parent::setUp();
// Must enable our module to make our plugins discoverable.
$this
->enableModule('uc_order', [
'Drupal\\uc_order' => __DIR__ . '/../../../../../src',
]);
// Tell the plugin manager where to look for plugins.
$this->moduleHandler
->getModuleDirectories()
->willReturn([
'uc_order' => __DIR__ . '/../../../../../',
]);
// Create a real plugin manager with a mock moduleHandler.
$this->eventManager = new RulesEventManager($this->moduleHandler
->reveal(), $this->entityTypeBundleInfo
->reveal());
}