You are here

protected function HideActiveItemsProcessorTest::setUp in Facets 8

Creates a new processor object for use in the tests.

Overrides UnitTestCase::setUp

File

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

Class

HideActiveItemsProcessorTest
Unit test for processor.

Namespace

Drupal\Tests\facets\Unit\Plugin\processor

Code

protected function setUp() {
  parent::setUp();
  $facet = new Facet([], 'facets_facet');
  $this->originalResults = [
    new Result($facet, 'llama', 'llama', 10),
    new Result($facet, 'badger', 'badger', 15),
    new Result($facet, 'duck', 'duck', 15),
  ];
  $this->processor = new HideActiveItemsProcessor([], 'hide_non_narrowing_result_processor', []);
}