diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2025-07-20 10:52:53 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2025-07-20 10:52:53 +0200 |
commit | 0d4a178666011eb2f10d9fe1f28ea92b589681b8 (patch) | |
tree | 26d0f79685ba4b3214c6b4322a89c7a3dea26ead /t/02-registration.t | |
parent | d11d0d5cb53896ea46de5b9186b481d678b5ad93 (diff) |
Tests: Hard-code German locale
Diffstat (limited to 't/02-registration.t')
-rw-r--r-- | t/02-registration.t | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/t/02-registration.t b/t/02-registration.t index 799022f..ec09eaf 100644 --- a/t/02-registration.t +++ b/t/02-registration.t @@ -17,6 +17,8 @@ require "$FindBin::Bin/../index.pl"; my $t = Test::Mojo->new('Travelynx'); +$t->ua->on( start => sub { $_[1]->req->headers->accept_language('de-DE') } ); + if ( not $t->app->config->{db} ) { plan( skip_all => 'No database configured' ); } @@ -206,7 +208,8 @@ $res = $t->app->pg->db->select( 'pending_passwords', ['token'], { user_id => $uid } ); $token = $res->hash->{token}; -$t->get_ok("/recover/${uid}/${token}")->status_is(200) +$t->get_ok("/recover/${uid}/${token}") + ->status_is(200) ->content_like(qr{Neues Passwort eintragen}); $t->post_ok( |