Esempio n. 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;
 }
Esempio n. 2
0
 public function testCalendarEvent()
 {
     $calendarEvent = new CalendarEvent();
     $this->notification->setCalendarEvent($calendarEvent);
     $this->assertEquals($calendarEvent, $this->notification->getEntity());
 }