Пример #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
 /**
  * @return Notifications
  */
 public function getCurrentNotifications()
 {
     $notifications = $this->session->get($this->currentKey());
     return Notifications::mapFromArray($notifications);
 }