You are here

public function FieldsProcessorPluginBaseTest::testTestTypeDefault in Search API 8

Tests whether the default implementation of testType() works correctly.

File

tests/src/Unit/Processor/FieldsProcessorPluginBaseTest.php, line 149

Class

FieldsProcessorPluginBaseTest
Tests the base class for fields-based processors.

Namespace

Drupal\Tests\search_api\Unit\Processor

Code

public function testTestTypeDefault() {
  $items = $this
    ->getTestItem();
  $this->processor
    ->preprocessIndexItems($items);
  $this
    ->assertFieldsProcessed($items, [
    'text_field',
    'string_field',
  ]);
}