You are here

public function DependencyRemovalTest::suggesterDependencyDataProvider in Search API Autocomplete 8

Provides test data sets for testSuggesterDependency().

Return value

array[] An array of argument arrays for testSuggesterDependency().

See also

\Drupal\Tests\search_api_autocomplete\Kernel\DependencyRemovalTest::testSuggesterDependency()

File

tests/src/Kernel/DependencyRemovalTest.php, line 257

Class

DependencyRemovalTest
Tests dependency handling of the search entity.

Namespace

Drupal\Tests\search_api_autocomplete\Kernel

Code

public function suggesterDependencyDataProvider() {
  return [
    'soft dependency, one suggester' => [
      TRUE,
      FALSE,
    ],
    'hard dependency, one suggester' => [
      FALSE,
      FALSE,
    ],
    'soft dependency, two suggesters' => [
      TRUE,
      TRUE,
    ],
    'hard dependency, two suggesters' => [
      FALSE,
      TRUE,
    ],
  ];
}