Commit 1841ca24 authored by borisson_'s avatar borisson_

Add extra ridigity in Exclude items unit test.

parent da1fcbc7
...@@ -119,10 +119,15 @@ class ExcludeSpecifiedItemsProcessorTest extends UnitTestCase { ...@@ -119,10 +119,15 @@ class ExcludeSpecifiedItemsProcessorTest extends UnitTestCase {
$filtered_results = $this->processor->build($facet, $this->original_results); $filtered_results = $this->processor->build($facet, $this->original_results);
$this->assertCount((count($this->original_results) -1), $filtered_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 * @dataProvider provideRegexTests
*/ */
public function testRegexFilter($regex, $expectedResults) { public function testRegexFilter($regex, $expectedResults) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment