protected function ProcessorIntegrationTest::disableAllFacetSorts in Facets 8
Disables all sorting processors for a clean testing base.
5 calls to ProcessorIntegrationTest::disableAllFacetSorts()
- ProcessorIntegrationTest::checkSortByActive in tests/
src/ Functional/ ProcessorIntegrationTest.php - Tests the active widget order.
- ProcessorIntegrationTest::checkSortByCount in tests/
src/ Functional/ ProcessorIntegrationTest.php - Tests the active widget order.
- ProcessorIntegrationTest::checkSortByDisplay in tests/
src/ Functional/ ProcessorIntegrationTest.php - Tests the display order.
- ProcessorIntegrationTest::checkSortByRaw in tests/
src/ Functional/ ProcessorIntegrationTest.php - Tests the display order.
- ProcessorIntegrationTest::testResultSorting in tests/
src/ Functional/ ProcessorIntegrationTest.php - Tests sorting of results.
File
- tests/
src/ Functional/ ProcessorIntegrationTest.php, line 690
Class
- ProcessorIntegrationTest
- Tests the processor functionality.
Namespace
Drupal\Tests\facets\FunctionalCode
protected function disableAllFacetSorts($path = FALSE) {
$settings = [
'facet_sorting[raw_value_widget_order][status]' => FALSE,
'facet_sorting[display_value_widget_order][status]' => FALSE,
'facet_sorting[count_widget_order][status]' => FALSE,
'facet_sorting[active_widget_order][status]' => FALSE,
];
if (!$path) {
$path = $this->editForm;
}
$this
->drupalPostForm($path, $settings, 'Save');
}