You are here

protected function RawValueWidgetOrderProcessorTest::setUp in Facets 8

Creates a new processor object for use in the tests.

Overrides UnitTestCase::setUp

File

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

Class

RawValueWidgetOrderProcessorTest
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, 'C', 'thetans', 10),
    new Result($facet, 'B', 'xenu', 5),
    new Result($facet, 'A', 'Tom', 15),
    new Result($facet, 'D', 'Hubbard', 666),
    new Result($facet, 'E', 'FALSE', 1),
    new Result($facet, 'G', '1977', 20),
    new Result($facet, 'F', '2', 22),
  ];
  $this->processor = new RawValueWidgetOrderProcessor([], 'raw_value_widget_order', []);
}