Namespace
Drupal\Tests\rules\Unit\Integration\Event
File
-
tests/src/Unit/Integration/Event/EventTestBase.php
View source
<?php
namespace Drupal\Tests\rules\Unit\Integration\Event;
use Drupal\rules\Core\RulesEventManager;
use Drupal\Tests\rules\Unit\Integration\RulesEntityIntegrationTestBase;
abstract class EventTestBase extends RulesEntityIntegrationTestBase {
protected $eventManager;
protected function setUp() : void {
parent::setUp();
$this->moduleHandler
->getModuleDirectories()
->willReturn([
'rules' => __DIR__ . '/../../../../../',
]);
$this->eventManager = new RulesEventManager($this->moduleHandler
->reveal(), $this->entityTypeBundleInfo
->reveal());
}
}
Classes
| Title |
Deprecated |
Summary |
| EventTestBase |
|
Base class for testing Rules Event definitions. |