X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/7b6a3af9cc51b982853b572028acc58c8349e2b6..7c452458d84a08fa930f470c92c8d044ae070dcd:/t/Support/TestSetup.pm diff --git a/t/Support/TestSetup.pm b/t/Support/TestSetup.pm index cb8fd7ffb..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; @@ -19,12 +21,13 @@ sub _login { package main; - $::lxdebug = LXDebug->new(file => \*STDERR); + $::lxdebug = LXDebug->new(target => LXDebug::STDERR_TARGET); + $::lxdebug->disable_sub_tracing; $::locale = Locale->new($::lx_office_conf{system}->{language}); $::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;