/** * Notify action * * @param \DERHANSEN\SfEventMgt\Domain\Model\Event $event Event * @param string $customNotification CustomNotification * * @return void */ public function notifyAction(Event $event, $customNotification) { $customNotifications = $this->settingsService->getCustomNotifications($this->settings); $result = $this->notificationService->sendCustomNotification($event, $customNotification, $this->settings); $this->notificationService->createCustomNotificationLogentry($event, $customNotifications[$customNotification], $result); $this->redirect('list', 'Administration', 'SfEventMgt', array('demand' => NULL, 'messageId' => 2)); }
/** * @test * @return void */ public function sendCustomNotificationWithoutParameters() { $result = $this->subject->sendCustomNotification(NULL, '', array()); $this->assertEquals(0, $result); }