mirror of
https://github.com/opdavies/gmail-filter-builder.git
synced 2025-11-14 05:58:45 +00:00
wip
This commit is contained in:
parent
caa3767246
commit
ba5a972715
3 changed files with 43 additions and 7 deletions
|
|
@ -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()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue