You are here

public function UrlProcessorHandlerTest::testBuild in Facets 8

Tests that the build method is correctly called.

File

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

Class

UrlProcessorHandlerTest
Unit test for processor.

Namespace

Drupal\Tests\facets\Unit\Plugin\processor

Code

public function testBuild() {
  $facet = new Facet([
    'id' => '_test',
  ], 'facets_facet');
  $this
    ->createContainer();
  $processor = new UrlProcessorHandler([
    'facet' => $facet,
  ], 'url_processor_handler', []);

  // The actual results of this should be tested in the actual processor.
  $processor
    ->build($facet, []);
}