Example #1
0
 /**
  * @param CalendarEvent     $calendarEvent
  * @param array             $emails
  * @param string            $templateName
  */
 protected function addEmailNotification(CalendarEvent $calendarEvent, $emails, $templateName)
 {
     $emailNotification = new EmailNotification($this->em);
     $emailNotification->setEmails($emails);
     $emailNotification->setCalendarEvent($calendarEvent);
     $emailNotification->setTemplateName($templateName);
     $this->emailNotifications[] = $emailNotification;
 }
 public function testEmails()
 {
     $emails = ['*****@*****.**'];
     $this->notification->setEmails($emails);
     $this->assertEquals($emails, $this->notification->getRecipientEmails());
 }