public function QueryStringTest::testEmptyProcessorConfiguration in Facets 8
Tests that the processor correctly throws an exception.
File
- tests/
src/ Unit/ Plugin/ url_processor/ QueryStringTest.php, line 82
Class
- QueryStringTest
- Unit test for processor.
Namespace
Drupal\Tests\facets\Unit\Plugin\url_processorCode
public function testEmptyProcessorConfiguration() {
$this
->expectException(InvalidProcessorException::class);
$this
->expectExceptionMessage("The url processor doesn't have the required 'facet' in the configuration array.");
new QueryString([], 'test', [], new Request(), $this->entityManager, $this->eventDispatcher);
}