public function EntityStatusTest::supportsIndexDataProvider in Search API 8
Provides data for the testSupportsIndex() tests.
Return value
array[] Array of parameter arrays for testSupportsIndex().
File
- tests/src/ Unit/ Processor/ EntityStatusTest.php, line 119 
Class
- EntityStatusTest
- Tests the "Entity status" processor.
Namespace
Drupal\Tests\search_api\Unit\ProcessorCode
public function supportsIndexDataProvider() {
  return [
    'all datasources' => [
      NULL,
      TRUE,
    ],
    'node datasource' => [
      [
        'entity:node',
      ],
      TRUE,
    ],
    'comment datasource' => [
      [
        'entity:comment',
      ],
      TRUE,
    ],
    'user datasource' => [
      [
        'entity:user',
      ],
      TRUE,
    ],
    'file datasource' => [
      [
        'entity:file',
      ],
      FALSE,
    ],
  ];
}