You are here

protected function ProcessorIntegrationTest::enableProcessor in Search API 8

Tests that a processor can be enabled.

Parameters

string $processor_id: The ID of the processor to enable.

5 calls to ProcessorIntegrationTest::enableProcessor()
ProcessorIntegrationTest::checkContentAccessIntegration in tests/src/Functional/ProcessorIntegrationTest.php
Tests the UI for the "Content access" processor.
ProcessorIntegrationTest::checkEntityStatusIntegration in tests/src/Functional/ProcessorIntegrationTest.php
Tests the UI for the "Entity status" processor.
ProcessorIntegrationTest::checkNumberFieldBoostIntegration in tests/src/Functional/ProcessorIntegrationTest.php
Tests the UI for the "Number field-based boosting" processor.
ProcessorIntegrationTest::checkRoleFilterIntegration in tests/src/Functional/ProcessorIntegrationTest.php
Tests the UI for the "Role filter" processor.
ProcessorIntegrationTest::checkStemmerIntegration in tests/src/Functional/ProcessorIntegrationTest.php
Tests the UI for the "Stemmer" processor.

File

tests/src/Functional/ProcessorIntegrationTest.php, line 752

Class

ProcessorIntegrationTest
Tests the admin UI for processors.

Namespace

Drupal\Tests\search_api\Functional

Code

protected function enableProcessor($processor_id) {
  $this
    ->loadProcessorsTab();
  $edit = [
    "status[{$processor_id}]" => 1,
  ];
  $this
    ->submitForm($edit, 'Save');
  $this
    ->assertTrue($this
    ->loadIndex()
    ->isValidProcessor($processor_id), "Successfully enabled the '{$processor_id}' processor.'");
}