From dac8a13645336de9db50c3d1ee5c5009ec129958 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 27 Feb 2013 14:12:45 +0100 Subject: [PATCH] TestSetup: $::request muss eine Instanz von SL::Request sein --- t/Support/TestSetup.pm | 4 +++- t/controllers/base/render.t | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/t/Support/TestSetup.pm b/t/Support/TestSetup.pm index c0b9e782d..671e6d9dc 100644 --- a/t/Support/TestSetup.pm +++ b/t/Support/TestSetup.pm @@ -9,8 +9,10 @@ use SL::Form; use SL::Locale; use SL::LXDebug; use Data::Dumper; +use SL::Layout::None; use SL::LxOfficeConf; use SL::InstanceConfiguration; +use SL::Request; sub _login { my $login = shift; @@ -25,7 +27,7 @@ sub _login { $::form = Form->new; $::auth = SL::Auth->new; $::instance_conf = SL::InstanceConfiguration->new; - $::request = { cgi => CGI->new({}) }; + $::request = SL::Request->new( cgi => CGI->new({}), layout => SL::Layout::None->new ); die 'cannot reach auth db' unless $::auth->session_tables_present; diff --git a/t/controllers/base/render.t b/t/controllers/base/render.t index 716ba428c..0f252bbe2 100644 --- a/t/controllers/base/render.t +++ b/t/controllers/base/render.t @@ -15,10 +15,10 @@ Support::TestSetup::login(); sub reset_test_env { $ENV{HTTP_USER_AGENT} = 'Perl Tests'; - $::request = { + $::request = SL::Request->new( cgi => CGI->new({}), layout => SL::Layout::Javascript->new, - }; + ); $::myconfig{menustyle} = 'javascript'; -- 2.20.1