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