mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 15:13:50 +00:00
notification / add email: fix entity Notification
This commit is contained in:
@@ -122,4 +122,22 @@ final class NotificationTest extends KernelTestCase
|
||||
$this->assertContains($addresseeId, $unreadIds);
|
||||
}
|
||||
}
|
||||
|
||||
public function testAddressesEmail(): void
|
||||
{
|
||||
$notification = new Notification();
|
||||
|
||||
$notification->addAddressesEmail('test');
|
||||
$notification->addAddressesEmail('other');
|
||||
|
||||
$this->assertContains('test', $notification->getAddressesEmails());
|
||||
$this->assertContains('other', $notification->getAddressesEmails());
|
||||
$this->assertContains('test', $notification->getAddressesEmailsAdded());
|
||||
$this->assertContains('other', $notification->getAddressesEmailsAdded());
|
||||
|
||||
$notification->removeAddressesEmail('other');
|
||||
|
||||
$this->assertNotContains('other', $notification->getAddressesEmails());
|
||||
$this->assertNotContains('other', $notification->getAddressesEmailsAdded());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user