You are here

protected function QueryStringTest::setUp in Facets 8

Creates a new processor object for use in the tests.

Overrides UnitTestCase::setUp

File

tests/src/Unit/Plugin/url_processor/QueryStringTest.php, line 62

Class

QueryStringTest
Unit test for processor.

Namespace

Drupal\Tests\facets\Unit\Plugin\url_processor

Code

protected function setUp() {
  parent::setUp();
  $this->eventDispatcher = $this
    ->createMock(EventDispatcherInterface::class);
  $facet = new Facet([], 'facets_facet');
  $this->originalResults = [
    new Result($facet, 'llama', 'Llama', 15),
    new Result($facet, 'badger', 'Badger', 5),
    new Result($facet, 'mushroom', 'Mushroom', 5),
    new Result($facet, 'duck', 'Duck', 15),
    new Result($facet, 'alpaca', 'Alpaca', 25),
  ];
  $this
    ->setContainer();
}