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