You are here

protected function ProcessorIntegrationTest::checkAddHierarchyIntegration in Search API 8

Tests the hierarchy processor.

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

File

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

Class

ProcessorIntegrationTest
Tests the admin UI for processors.

Namespace

Drupal\Tests\search_api\Functional

Code

protected function checkAddHierarchyIntegration() {
  $configuration = [
    'fields' => [
      'term_field' => 'taxonomy_term-parent',
      'parent_reference' => 'node-parent_reference',
    ],
  ];
  $edit = [
    'fields' => [
      'term_field' => [
        'status' => 1,
      ],
      'parent_reference' => [
        'status' => 1,
      ],
    ],
  ];
  $this
    ->editSettingsForm($configuration, 'hierarchy', $edit, TRUE, FALSE);
}