You are here

public function UrlProcessorHandlerTest::testInvalidProcessorConfiguration in Facets 8

Tests that the processor correctly throws an exception.

File

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

Class

UrlProcessorHandlerTest
Unit test for processor.

Namespace

Drupal\Tests\facets\Unit\Plugin\processor

Code

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