You are here

public function UrlProcessorHandlerTest::testEmptyProcessorConfiguration in Facets 8

Tests that the processor correctly throws an exception.

File

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

Class

UrlProcessorHandlerTest
Unit test for processor.

Namespace

Drupal\Tests\facets\Unit\Plugin\processor

Code

public function testEmptyProcessorConfiguration() {
  $this
    ->expectException(InvalidProcessorException::class);
  $this
    ->expectExceptionMessage("The UrlProcessorHandler doesn't have the required 'facet' in the configuration array.");
  new UrlProcessorHandler([], 'test', []);
}