mirror of
https://github.com/opdavies/gmail-filter-builder.git
synced 2025-09-05 21:15:33 +01:00
Split and store the conditions for a filter
This commit is contained in:
parent
af985e8b37
commit
1578cc81a3
2 changed files with 29 additions and 0 deletions
|
@ -320,4 +320,14 @@ class FilterTest extends TestCase
|
|||
->toArray()
|
||||
);
|
||||
}
|
||||
|
||||
/** @test */
|
||||
public function conditions_can_be_split_and_stored()
|
||||
{
|
||||
$filter = Filter::create()
|
||||
->has('to:me@example.com subject:Something')
|
||||
->archive();
|
||||
|
||||
$this->assertCount(2, $filter->getConditions());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue