function ReactionRuleConfigTest::createRule
Creates a rule.
Parameters
array $values: (optional) An array of values to set, keyed by property name.
6 calls to ReactionRuleConfigTest::createRule()
- ReactionRuleConfigTest::testAddEvent in tests/
src/ Unit/ Entity/ ReactionRuleConfigTest.php - @covers ::addEvent @covers ::getEvents
- ReactionRuleConfigTest::testGetEventNames in tests/
src/ Unit/ Entity/ ReactionRuleConfigTest.php - @covers ::getEventNames
- ReactionRuleConfigTest::testGetEvents in tests/
src/ Unit/ Entity/ ReactionRuleConfigTest.php - @covers ::getEvents
- ReactionRuleConfigTest::testHasEvent in tests/
src/ Unit/ Entity/ ReactionRuleConfigTest.php - @covers ::hasEvent
- ReactionRuleConfigTest::testRemoveEvent in tests/
src/ Unit/ Entity/ ReactionRuleConfigTest.php - @covers ::removeEvent @covers ::getEvents
File
-
tests/
src/ Unit/ Entity/ ReactionRuleConfigTest.php, line 20
Class
- ReactionRuleConfigTest
- @coversDefaultClass \Drupal\rules\Entity\ReactionRuleConfig @group Rules
Namespace
Drupal\Tests\rules\Unit\EntityCode
protected function createRule(array $values = []) {
$values += [
'id' => 'test_rule',
];
return new ReactionRuleConfig($values, 'rules_reaction_rule');
}