FilterTest: fix complex filter example

The filter in the test was not a valid filter.

fixes #7069
This commit is contained in:
Thomas Gelf 2014-09-03 15:03:24 +02:00
parent af3f33d260
commit 65fb246b7e
1 changed files with 1 additions and 1 deletions

View File

@ -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)));