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); }
/** * @param Notification $notification * @return void */ public function send(Notification $notification) { $this->session->push($this->newKey(), ['type' => $notification->getType(), 'message' => $notification->getMessage()]); }