mirror of
https://github.com/opdavies/gmail-filter-builder.git
synced 2025-09-03 20:25:33 +01:00
Allow for setting multiple subject conditions
This commit is contained in:
parent
5dd94e2852
commit
d916b8e165
2 changed files with 17 additions and 4 deletions
|
@ -102,11 +102,22 @@ class FilterTest extends TestCase
|
|||
public function testSubject()
|
||||
{
|
||||
$this->assertEquals(
|
||||
['subject' => 'Something'],
|
||||
['subject' => '"Something"'],
|
||||
$this->filter->subject('Something')->toArray()
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Test that multiple subject conditions can be added.
|
||||
*/
|
||||
public function testMultipleSubjectsCanBeAdded()
|
||||
{
|
||||
$this->assertEquals(
|
||||
['subject' => '"Test"|"Foo bar"'],
|
||||
$this->filter->subject(['Test', 'Foo bar'])->toArray()
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Filter::hasAttachment()
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue