X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/8e4ccdd50ed020591ec6caec89f043253ecc0653..6f266e929ff3eaefc84c34b46fa452c50eecbcf4:/t/Support/TestSetup.pm diff --git a/t/Support/TestSetup.pm b/t/Support/TestSetup.pm index 5b6e2bb1f..c0b9e782d 100644 --- a/t/Support/TestSetup.pm +++ b/t/Support/TestSetup.pm @@ -11,7 +11,6 @@ use SL::LXDebug; use Data::Dumper; use SL::LxOfficeConf; use SL::InstanceConfiguration; -SL::LxOfficeConf->read; sub _login { my $login = shift; @@ -20,7 +19,8 @@ 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; @@ -45,6 +45,8 @@ sub _login { } sub login { + SL::LxOfficeConf->read; + my $login = shift || $::lx_office_conf{testing}{login} || 'demo'; _login($login); }