EventTestBase.php in Radioactivity 4.0.x
File
tests/src/Unit/EventTestBase.php
View source
<?php
namespace Drupal\Tests\radioactivity\Unit;
use Drupal\rules\Core\RulesEventManager;
use Drupal\Tests\rules\Unit\Integration\Event\EventTestBase as RulesEventTestBase;
abstract class EventTestBase extends RulesEventTestBase {
protected function setUp() : void {
parent::setUp();
$this
->enableModule('radioactivity', [
'Drupal\\radioactivity' => __DIR__ . '/../../../src',
]);
$this->moduleHandler
->getModuleDirectories()
->willReturn([
'radioactivity' => __DIR__ . '/../../../',
]);
$this->eventManager = new RulesEventManager($this->moduleHandler
->reveal(), $this->entityTypeBundleInfo
->reveal());
}
}
Classes
Name |
Description |
EventTestBase |
Base class containing common code for radioactivity event tests. |