You are here

protected function ProcessorIntegrationTest::loadProcessorsTab in Search API 8

Loads the test index's "Processors" tab in the test browser, if necessary.

Parameters

bool $force: (optional) If TRUE, even load the tab if we are already on it.

6 calls to ProcessorIntegrationTest::loadProcessorsTab()
ProcessorIntegrationTest::checkNoUiIntegration in tests/src/Functional/ProcessorIntegrationTest.php
Tests the "No UI" test processor.
ProcessorIntegrationTest::checkValidationError in tests/src/Functional/ProcessorIntegrationTest.php
Makes sure that the given form values will fail when submitted.
ProcessorIntegrationTest::editSettingsForm in tests/src/Functional/ProcessorIntegrationTest.php
Enables a processor with a given configuration.
ProcessorIntegrationTest::enableProcessor in tests/src/Functional/ProcessorIntegrationTest.php
Tests that a processor can be enabled.
ProcessorIntegrationTest::testLimitProcessors in tests/src/Functional/ProcessorIntegrationTest.php
Tests that processors discouraged by the backend are correctly hidden.

... See full list

File

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

Class

ProcessorIntegrationTest
Tests the admin UI for processors.

Namespace

Drupal\Tests\search_api\Functional

Code

protected function loadProcessorsTab($force = FALSE) {
  $settings_path = 'admin/config/search/search-api/index/' . $this->indexId . '/processors';
  if ($force || $this
    ->getAbsoluteUrl($settings_path) != $this
    ->getUrl()) {
    $this
      ->drupalGet($settings_path);
  }
}