RulesActionManagerTest.php
Namespace
Drupal\Tests\rules\Unit\Integration\RulesActionFile
-
tests/
src/ Unit/ Integration/ RulesAction/ RulesActionManagerTest.php
View source
<?php
namespace Drupal\Tests\rules\Unit\Integration\RulesAction;
use Drupal\rules\Context\ContextDefinitionInterface;
use Drupal\Tests\rules\Unit\Integration\RulesIntegrationTestBase;
/**
* Tests the Rules action manager.
*
* @coversDefaultClass \Drupal\rules\Core\RulesActionManager
* @group Rules
*/
class RulesActionManagerTest extends RulesIntegrationTestBase {
/**
* @covers ::getDiscovery
*/
public function testContextDefinitionAnnotations() {
$definitions = $this->actionManager
->getDefinitions();
// Make sure all context definitions are using the class provided by Rules.
foreach ($definitions as $definition) {
if (!empty($definition['context_definitions'])) {
foreach ($definition['context_definitions'] as $context_definition) {
$this->assertInstanceOf(ContextDefinitionInterface::class, $context_definition);
}
}
}
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
RulesActionManagerTest | Tests the Rules action manager. |