FilterTest: fix complex filter example
The filter in the test was not a valid filter. fixes #7069
This commit is contained in:
parent
af3f33d260
commit
65fb246b7e
|
@ -182,7 +182,7 @@ class FilterTest extends BaseTestCase
|
|||
|
||||
public function testComplexFilterFromQueryString()
|
||||
{
|
||||
$q = 'host=localhost|nohost*&problem&service=*www*|ups*&state!=1&!handled';
|
||||
$q = '(host=localhost|host=nohost*)&problem&(service=*www*|service=ups*)&state!=1&!handled';
|
||||
$filter = Filter::fromQueryString($q);
|
||||
$this->assertFalse($filter->matches($this->row(0)));
|
||||
$this->assertTrue($filter->matches($this->row(1)));
|
||||
|
|
Loading…
Reference in New Issue