/** * @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 testCalendarEvent() { $calendarEvent = new CalendarEvent(); $this->notification->setCalendarEvent($calendarEvent); $this->assertEquals($calendarEvent, $this->notification->getEntity()); }