mirror of
https://github.com/opdavies/gmail-filter-builder.git
synced 2025-09-04 04:35:33 +01:00
Fix partials test
This commit is contained in:
parent
3f5c453d9b
commit
5de0ddb539
1 changed files with 7 additions and 3 deletions
|
@ -16,9 +16,13 @@ class PartialsTest extends TestCase
|
|||
|
||||
$this->assertCount(3, $filters);
|
||||
|
||||
$this->assertSame('foo@example.com', $filters[0]->toArray()['from'][0]);
|
||||
$this->assertSame('bar@example.com', $filters[1]->toArray()['from'][0]);
|
||||
$this->assertSame('baz@example.com', $filters[2]->toArray()['from'][0]);
|
||||
$toAddresses = collect($filters)
|
||||
->flatMap->getConditions()->map->getValues()
|
||||
->flatten();
|
||||
|
||||
$this->assertSame('foo@example.com', $toAddresses[0]);
|
||||
$this->assertSame('bar@example.com', $toAddresses[1]);
|
||||
$this->assertSame('baz@example.com', $toAddresses[2]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue