From: Moritz Bunkus Date: Fri, 10 Feb 2017 13:19:42 +0000 (+0100) Subject: Revert "Tests: Datenbank-Meldungen immer in English zurückgeben" X-Git-Tag: release-3.5.4~1501 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=61fd6cd9854652b687b98a06ee5612b3265d960f;p=kivitendo-erp.git Revert "Tests: Datenbank-Meldungen immer in English zurückgeben" Dies revertet e38b0b21c1e924cb0b1a21f6e2fe5db7d3258f70, da der Datenbankuser Superadmin sein muss, um lc_messages setzen zu können. --- diff --git a/t/Support/TestSetup.pm b/t/Support/TestSetup.pm index d74e66a7b..037cfb547 100644 --- a/t/Support/TestSetup.pm +++ b/t/Support/TestSetup.pm @@ -48,12 +48,6 @@ sub login { $SIG{__DIE__} = sub { Carp::confess( @_ ) } if $::lx_office_conf{debug}->{backtrace_on_die}; - # Always use English locale for messages from the database during - # tests. - my $query = qq|SET lc_messages = 'en_US.UTF-8'|; - SL::DB->auth->dbh->do($query) || die 'Cannot set database locale to en_US.UTF-8 for auth database'; - SL::DB->client->dbh->do($query) || die 'Cannot set database locale to en_US.UTF-8 for main database'; - return 1; }