You are here

public function DependentFacetProcessorTest::setUp in Facets 8

Overrides UnitTestCase::setUp

File

tests/src/Unit/Plugin/processor/DependentFacetProcessorTest.php, line 30

Class

DependentFacetProcessorTest
Unit test for processor.

Namespace

Drupal\Tests\facets\Unit\Plugin\processor

Code

public function setUp() {
  $facet = new Facet([], 'facets_facet');
  $this->results = [
    new Result($facet, 'snow_owl', 'Snow owl', 2),
    new Result($facet, 'forest_owl', 'Forest owl', 3),
    new Result($facet, 'sand_owl', 'Sand owl', 8),
    new Result($facet, 'church_owl', 'Church owl', 1),
    new Result($facet, 'barn_owl', 'Barn owl', 1),
  ];
}