You are here

public function NodeExcludeTest::supportsIndexDataProvider in Search API exclude 8

Provides data for the testSupportsIndex() test.

Return value

array Array of parameter arrays for testSupportsIndex().

File

tests/src/Unit/Plugin/Processor/NodeExcludeTest.php, line 100

Class

NodeExcludeTest
Tests the "Node exclude" processor.

Namespace

Drupal\Tests\search_api_exclude\Unit\Plugin\Processor

Code

public function supportsIndexDataProvider() {
  return [
    'node datasource' => [
      [
        'entity:node',
      ],
      TRUE,
    ],
    'comment datasource' => [
      [
        'entity:comment',
      ],
      FALSE,
    ],
    'user datasource' => [
      [
        'entity:user',
      ],
      FALSE,
    ],
  ];
}