ConditionManagerTest.php in Rules 8.3
File
tests/src/Unit/Integration/Condition/ConditionManagerTest.php
View source
<?php
namespace Drupal\Tests\rules\Unit\Integration\Condition;
use Drupal\rules\Context\ContextDefinitionInterface;
use Drupal\Tests\rules\Unit\Integration\RulesIntegrationTestBase;
class ConditionManagerTest extends RulesIntegrationTestBase {
public function testContextDefinitionAnnotations() {
$definitions = $this->conditionManager
->getDefinitions();
foreach ($definitions as $definition) {
if (!empty($definition['context_definitions'])) {
foreach ($definition['context_definitions'] as $context_definition) {
$this
->assertInstanceOf(ContextDefinitionInterface::class, $context_definition);
}
}
}
}
}