{
if (!$this->_mobile) {
$p = new Horde_Notification_Listener_Status();
- return $p->notify($messageStack, $options);
+ return $p->getMessage($message, $options);
}
$event = $this->getEvent($message);
);
$listener->notify($messages);
}
+
+ public function testMethodGetmessageHasSameOutputAsTheStatusListenerIfNoMobileObjectWasSet()
+ {
+ $listener = new Horde_Notification_Listener_Mobile();
+ $event = new Horde_Notification_Event('test');
+ $flags = array('content.raw' => true);
+ $message = array(
+ 'class' => 'Horde_Notification_Event',
+ 'event' => serialize($event),
+ 'type' => 'horde.message',
+ 'flags' => serialize($flags)
+ );
+ $listener->getMessage($message, array('data' => true));
+ }
+
}