This commit is contained in:
Oliver Davies 2019-04-23 18:31:15 +01:00
parent caa3767246
commit ba5a972715
3 changed files with 43 additions and 7 deletions

View file

@ -337,4 +337,20 @@ class FilterTest extends TestCase
->toArray()
);
}
/** @test */
public function conditions_can_be_negated()
{
$this->filter
->from('example.com')
->negate($this->filter->subject('test'));
$this->assertEquals(
[
'from' => 'example.com',
'subject' => '-(test)',
],
$this->filter->toArray()
);
}
}