protected function CountWidgetOrderProcessorTest::setUp in Facets 8
Creates a new processor object for use in the tests.
Overrides UnitTestCase::setUp
File
- tests/
src/ Unit/ Plugin/ processor/ CountWidgetOrderProcessorTest.php, line 34
Class
- CountWidgetOrderProcessorTest
- Unit test for processor.
Namespace
Drupal\Tests\facets\Unit\Plugin\processorCode
protected function setUp() {
parent::setUp();
$facet = new Facet([], 'facets_facet');
$this->originalResults = [
new Result($facet, 'llama', 'llama', 10),
new Result($facet, 'badger', 'badger', 5),
new Result($facet, 'duck', 'duck', 15),
];
$this->processor = new CountWidgetOrderProcessor([], 'count_widget_order', []);
}