コード例 #1
0
 function it_sends_the_notifications_to_the_session_store(SessionStore $session)
 {
     $notification = Notification::success('It was successful');
     $session->push('my-key.new', ['type' => $notification->getType(), 'message' => $notification->getMessage()])->shouldBeCalled();
     $this->send($notification);
 }
コード例 #2
0
ファイル: SessionTransport.php プロジェクト: rojtjo/notifier
 /**
  * @return Notifications
  */
 public function getCurrentNotifications()
 {
     $notifications = $this->session->get($this->currentKey());
     return Notifications::mapFromArray($notifications);
 }