You are here

public function ProcessorIntegrationTest::checkRoleFilterIntegration in Search API 8

Tests the UI for the "Role filter" processor.

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

File

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

Class

ProcessorIntegrationTest
Tests the admin UI for processors.

Namespace

Drupal\Tests\search_api\Functional

Code

public function checkRoleFilterIntegration() {
  $this
    ->enableProcessor('role_filter');
  $configuration = [
    'default' => 1,
    'roles' => [
      'anonymous',
    ],
  ];
  $this
    ->editSettingsForm($configuration, 'role_filter');
}