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