diff options
Diffstat (limited to 't/app/model')
-rw-r--r-- | t/app/model/alert_type.t | 8 | ||||
-rw-r--r-- | t/app/model/state.t | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/t/app/model/alert_type.t b/t/app/model/alert_type.t index 78574ac36..ecca2df3d 100644 --- a/t/app/model/alert_type.t +++ b/t/app/model/alert_type.t @@ -486,7 +486,7 @@ subtest "correct i18n-ed summary for state of closed" => sub { $mech->clear_emails_ok; $report->update( { state => 'closed' } ); - $alert->update( { lang => 'nb', cobrand => 'fiksgatami' } ); + $alert->update( { lang => 'sv', cobrand => 'fixamingata' } ); FixMyStreet::DB->resultset('AlertSent')->search( { alert_id => $alert->id, @@ -494,14 +494,14 @@ subtest "correct i18n-ed summary for state of closed" => sub { } )->delete; FixMyStreet::override_config { - ALLOWED_COBRANDS => [ 'fiksgatami' ], + ALLOWED_COBRANDS => [ 'fixamingata' ], }, sub { FixMyStreet::DB->resultset('AlertType')->email_alerts(); }; my $body = $mech->get_text_body_from_email; - my $msg = 'Denne rapporten er for tiden markert som lukket'; - like $body, qr/$msg/, 'email says problem is closed, in Norwegian'; + my $msg = 'Den här rapporten är markerad som stängd'; + like $body, qr/$msg/, 'email says problem is closed, in Swedish'; }; END { diff --git a/t/app/model/state.t b/t/app/model/state.t index 35f3d4fb3..f680cf3e8 100644 --- a/t/app/model/state.t +++ b/t/app/model/state.t @@ -66,14 +66,14 @@ is_deeply [ sort FixMyStreet::DB::Result::Problem->fixed_states ], ['fixed', 'fixed - council', 'fixed - user'], 'fixed states okay'; FixMyStreet::override_config { - LANGUAGES => [ 'en-gb,English,en_GB', 'nb,Norwegian,nb_NO' ], + LANGUAGES => [ 'en-gb,English,en_GB', 'sv,Swedish,sv_SE' ], }, sub { subtest 'translation of open works both ways (file/db)' => sub { # Note at this point the states have been cached my $cobrand = FixMyStreet::Cobrand->get_class_for_moniker('default')->new; - my $lang = $cobrand->set_lang_and_domain('nb', 1, FixMyStreet->path_to('locale')->stringify); - is $lang, 'nb'; - is $rs->display('confirmed'), "Åpen"; + my $lang = $cobrand->set_lang_and_domain('sv', 1, FixMyStreet->path_to('locale')->stringify); + is $lang, 'sv'; + is $rs->display('confirmed'), "Öppen"; $lang = $cobrand->set_lang_and_domain('en-gb', 1, FixMyStreet->path_to('locale')->stringify); is $lang, 'en-gb'; is $rs->display('confirmed'), "Open Eng trans"; |