You are here

public function ProcessorIntegrationTest::checkNoUiIntegration in Search API 8

Tests the "No UI" test processor.

1 call to ProcessorIntegrationTest::checkNoUiIntegration()
ProcessorIntegrationTest::testProcessorIntegration in tests/src/Functional/ProcessorIntegrationTest.php
Tests the admin UI for processors.

File

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

Class

ProcessorIntegrationTest
Tests the admin UI for processors.

Namespace

Drupal\Tests\search_api\Functional

Code

public function checkNoUiIntegration() {
  $this
    ->loadProcessorsTab();
  $this
    ->assertSession()
    ->pageTextNotContains('No UI processor');

  // Ensure that the processor can still be enabled programmatically – and
  // stays enabled when submitting the processors form.
  $index = $this
    ->loadIndex();
  $processor = \Drupal::getContainer()
    ->get('search_api.plugin_helper')
    ->createProcessorPlugin($index, 'search_api_test_no_ui');
  $index
    ->addProcessor($processor)
    ->save();
}