protected function FacetsCustomLabelProcessorTest::setUp in Facets Custom Label 8
Prepare the processor object for testing.
Overrides UnitTestCase::setUp
File
- tests/
src/ Unit/ Plugin/ processor/ FacetsCustomLabelProcessorTest.php, line 32
Class
- FacetsCustomLabelProcessorTest
- Tests the custom label processor.
Namespace
Drupal\Tests\facets_custom_label\UnitCode
protected function setUp() {
parent::setUp();
$facet = new Facet([], 'facets_facet');
$this->originalResults = [
new Result($facet, 0, 'Numerical raw value 0', 5),
new Result($facet, 'literal raw value 0', 'Literal raw value 0', 199),
new Result($facet, 'literal raw value 1', 'Literal raw value 1', 2),
new Result($facet, 1234, 'Numerical raw value 1234', 55),
];
$this->processor = new FacetsCustomLabelProcessor([
'replacement_values' => '',
], 'facets_custom_label_processor', []);
}