You are here

public function UrlProcessorHandlerTest::testConfiguration in Facets 8

Tests configuration.

File

tests/src/Unit/Plugin/processor/UrlProcessorHandlerTest.php, line 55

Class

UrlProcessorHandlerTest
Unit test for processor.

Namespace

Drupal\Tests\facets\Unit\Plugin\processor

Code

public function testConfiguration() {
  $facet = new Facet([], 'facets_facet');
  $this
    ->createContainer();
  $processor = new UrlProcessorHandler([
    'facet' => $facet,
  ], 'url_processor_handler', []);
  $config = $processor
    ->defaultConfiguration();
  $this
    ->assertEquals([], $config);
}