summaryrefslogtreecommitdiffstats
path: root/tests/src/Unit/Plugin
diff options
context:
space:
mode:
authorJimmy Henderickx2015-11-06 16:49:28 (GMT)
committerJimmy Henderickx2015-11-06 16:49:45 (GMT)
commit09ee8c651dcfa41affd17aae8800e8974f1f6a30 (patch)
tree0eeefdff78e02382a9cd1516155d5430079266df /tests/src/Unit/Plugin
parentd2b0613f1271cc4ba7b733c2519ecbcf2376149b (diff)
Issue #2598262 - Show settings in facet display page
Diffstat (limited to 'tests/src/Unit/Plugin')
-rw-r--r--tests/src/Unit/Plugin/processor/MinimumCountProcessorTest.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/src/Unit/Plugin/processor/MinimumCountProcessorTest.php b/tests/src/Unit/Plugin/processor/MinimumCountProcessorTest.php
index 4aed1a3..aa1c77b 100644
--- a/tests/src/Unit/Plugin/processor/MinimumCountProcessorTest.php
+++ b/tests/src/Unit/Plugin/processor/MinimumCountProcessorTest.php
@@ -53,12 +53,11 @@ class MinimumCountProcessorTest extends UnitTestCase {
$facet = new Facet([], 'facet');
$facet->setResults($this->original_results);
- $facet->setProcessorConfigs([
+ $facet->setOption('processors', [
'minimum_count' => [
'settings' => ['minimum_items' => 4]
]
]);
-
$sorted_results = $this->processor->build($facet, $this->original_results);
$this->assertCount(3, $sorted_results);
@@ -75,7 +74,7 @@ class MinimumCountProcessorTest extends UnitTestCase {
$facet = new Facet([], 'facet');
$facet->setResults($this->original_results);
- $facet->setProcessorConfigs([
+ $facet->setOption('processors', [
'minimum_count' => [
'settings' => ['minimum_items' => 5]
]
@@ -97,7 +96,7 @@ class MinimumCountProcessorTest extends UnitTestCase {
$facet = new Facet([], 'facet');
$facet->setResults($this->original_results);
- $facet->setProcessorConfigs([
+ $facet->setOption('processors', [
'minimum_count' => [
'settings' => ['minimum_items' => 8]
]