public function testGetAllTypesFromSessionWhouldWork() { $session = ['message' => 'Message', 'info' => 'Info', 'warning' => 'Warning', 'error' => 'Error']; Msg::setSessionHandler(new SessionHandler($session)); $this->assertEquals('MessageInfoWarningError', Msg::getAll(false)); }
/** * Register the service provider. * * @return void */ public function register() { Msg::setSessionHandler($this->app['session']); }