Revert "tax_id in acc_trans"
[kivitendo-erp.git] / t / Support / TestSetup.pm
index 5b6e2bb..c0b9e78 100644 (file)
@@ -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);
 }