summaryrefslogtreecommitdiffstats
path: root/tests/src/Unit/Plugin
diff options
context:
space:
mode:
authorJoris Vercammen2015-11-09 18:32:33 (GMT)
committerJoris Vercammen2015-11-09 18:32:33 (GMT)
commit1841ca24f819e951b4bc24c3aac25ad0d7dbebcb (patch)
tree40f2002c6ee5963a963d0f45be6d9a5400711606 /tests/src/Unit/Plugin
parentda1fcbc7557bc5295e77cb8f2b4304fd7d6d94e0 (diff)
Add extra ridigity in Exclude items unit test.
Diffstat (limited to 'tests/src/Unit/Plugin')
-rw-r--r--tests/src/Unit/Plugin/processor/ExcludeSpecifiedItemsProcessorTest.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/src/Unit/Plugin/processor/ExcludeSpecifiedItemsProcessorTest.php b/tests/src/Unit/Plugin/processor/ExcludeSpecifiedItemsProcessorTest.php
index f3465e3..6d1c77e 100644
--- a/tests/src/Unit/Plugin/processor/ExcludeSpecifiedItemsProcessorTest.php
+++ b/tests/src/Unit/Plugin/processor/ExcludeSpecifiedItemsProcessorTest.php
@@ -119,10 +119,15 @@ class ExcludeSpecifiedItemsProcessorTest extends UnitTestCase {
$filtered_results = $this->processor->build($facet, $this->original_results);
$this->assertCount((count($this->original_results) -1), $filtered_results);
+
+ foreach ($filtered_results as $result) {
+ $this->assertNotEquals('llama', $result->getDisplayValue());
+ }
}
/**
- * Test filtering happens for string filter
+ * Test filtering happens for regex filter
+ *
* @dataProvider provideRegexTests
*/
public function testRegexFilter($regex, $expectedResults) {