You are here

public function IntegrationTest::enableAllProcessors in Search API 8

Enables all processors.

2 calls to IntegrationTest::enableAllProcessors()
IntegrationTest::testFramework in tests/src/Functional/IntegrationTest.php
Tests various operations via the Search API's admin UI.
IntegrationTest::testIntegerIndex in tests/src/Functional/IntegrationTest.php
Tests what happens when an index has an integer as id/label.

File

tests/src/Functional/IntegrationTest.php, line 728

Class

IntegrationTest
Tests the overall functionality of the Search API framework and admin UI.

Namespace

Drupal\Tests\search_api\Functional

Code

public function enableAllProcessors() {
  $this
    ->drupalGet($this
    ->getIndexPath('processors'));
  $edit = [
    'status[content_access]' => 1,
    'status[entity_status]' => 1,
    'status[highlight]' => 1,
    'status[html_filter]' => 1,
    'status[ignorecase]' => 1,
    'status[ignore_character]' => 1,
    'status[stopwords]' => 1,
    'status[tokenizer]' => 1,
    'status[transliteration]' => 1,
  ];
  $this
    ->submitForm($edit, 'Save');
  $this
    ->assertSession()
    ->pageTextContains('The indexing workflow was successfully edited.');
}