Skip to content

Commit

Permalink
Merge pull request #223 from bugfolder/222_test_groups
Browse files Browse the repository at this point in the history
Issue #222: Ensure events and actions have groups (D7 port).
  • Loading branch information
bugfolder authored Apr 16, 2024
2 parents 7f95a03 + d2e81ad commit 2bbfc9d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/rules_test/rules_test.rules.inc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ function rules_test_rules_event_info() {
return array(
'rules_test_event' => array(
'label' => t('Test event'),
'group' => t('Rules test'),
'class' => 'RulesTestEventHandler',
),
);
Expand Down Expand Up @@ -129,6 +130,7 @@ function rules_test_rules_action_info() {
'callbacks' => array(
'help' => 'rules_test_custom_help',
),
'group' => t('Rules test'),
'base' => 'rules_action_node_publish',
),
'rules_node_publish_action_save' => array(
Expand All @@ -140,6 +142,7 @@ function rules_test_rules_action_info() {
'save' => TRUE,
),
),
'group' => t('Rules test'),
'base' => 'rules_action_node_publish',
),
'rules_node_make_sticky_action' => array(
Expand All @@ -151,6 +154,7 @@ function rules_test_rules_action_info() {
'save' => TRUE,
),
),
'group' => t('Rules test'),
'base' => 'rules_action_node_make_sticky',
),
// The same action again requiring a 'page' node.
Expand All @@ -164,6 +168,7 @@ function rules_test_rules_action_info() {
'bundles' => array('page'),
),
),
'group' => t('Rules test'),
'base' => 'rules_action_node_make_sticky',
),
'rules_action_test_reference' => array(
Expand All @@ -172,6 +177,7 @@ function rules_test_rules_action_info() {
// For references working right, we need a data type with a wrapper.
'arg' => array('type' => 'test'),
),
'group' => t('Rules test'),
),
'rules_action_load_node' => array(
'label' => t('Fetch content by id'),
Expand Down

0 comments on commit 2bbfc9d

Please sign in to comment.