EventTestBase.php
Namespace
Drupal\Tests\rules\Unit\Integration\EventFile
-
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;
/**
* Base class for testing Rules Event definitions.
*
* @group RulesEvent
*/
abstract class EventTestBase extends RulesEntityIntegrationTestBase {
/**
* The Rules event plugin manager.
*
* @var \Drupal\rules\Core\RulesEventManager
*/
protected $eventManager;
/**
* {@inheritdoc}
*/
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. |