Revision 61fd6cd9
Von Moritz Bunkus vor fast 8 Jahren hinzugefügt
t/Support/TestSetup.pm | ||
---|---|---|
48 | 48 |
|
49 | 49 |
$SIG{__DIE__} = sub { Carp::confess( @_ ) } if $::lx_office_conf{debug}->{backtrace_on_die}; |
50 | 50 |
|
51 |
# Always use English locale for messages from the database during |
|
52 |
# tests. |
|
53 |
my $query = qq|SET lc_messages = 'en_US.UTF-8'|; |
|
54 |
SL::DB->auth->dbh->do($query) || die 'Cannot set database locale to en_US.UTF-8 for auth database'; |
|
55 |
SL::DB->client->dbh->do($query) || die 'Cannot set database locale to en_US.UTF-8 for main database'; |
|
56 |
|
|
57 | 51 |
return 1; |
58 | 52 |
} |
59 | 53 |
|
Auch abrufbar als: Unified diff
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.