/**
  * 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
  * @dataProvider customNotificationsSettingsDataProvider
  */
 public function getCustomNotificationsTest($settings, $expected)
 {
     $result = $this->subject->getCustomNotifications($settings);
     $this->assertEquals($expected, $result);
 }