You are here

public function AnnotationProcessingTest::provideRulesPlugins in Rules 8.3

Provider for plugins to test.

Passes $plugin_type, $plugin_id, $context_name, and $expected.

Return value

array Array of array of values to be passed to our test.

File

tests/src/Unit/Integration/Engine/AnnotationProcessingTest.php, line 99

Class

AnnotationProcessingTest
Tests processing of the ContextDefinition annotation.

Namespace

Drupal\Tests\rules\Unit\Integration\Engine

Code

public function provideRulesPlugins() {
  return [
    [
      'action',
      'rules_user_block',
      'user',
      'entity:user',
    ],
    [
      'condition',
      'rules_entity_is_of_bundle',
      'entity',
      'entity',
    ],
    [
      'condition',
      'rules_node_is_promoted',
      'node',
      'entity:node',
    ],
    [
      'action',
      'rules_list_item_add',
      'list',
      'list',
    ],
    [
      'action',
      'rules_list_item_add',
      'item',
      'any',
    ],
    [
      'action',
      'rules_list_item_add',
      'unique',
      'boolean',
    ],
    [
      'action',
      'rules_list_item_add',
      'position',
      'string',
    ],
  ];
}