From 50ffc4ad68fafdb1dd742ac8a4b5a96b7c821467 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Wed, 8 Jan 2025 13:28:15 +0000 Subject: [PATCH] Bug 38646: Update unit test for change This drops the bracketed translation in the tests in language_description where the bracketed language name matches the preceeding one. Signed-off-by: Martin Renvoize --- t/db_dependent/Languages.t | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/t/db_dependent/Languages.t b/t/db_dependent/Languages.t index 22349b628e7..1d8e1e2296d 100755 --- a/t/db_dependent/Languages.t +++ b/t/db_dependent/Languages.t @@ -1,6 +1,6 @@ #!/usr/bin/perl # -# This Koha test module is a stub! +# This Koha test module is a stub! # Add more tests here!!! use utf8; use Modern::Perl; @@ -157,7 +157,7 @@ subtest 'getLanguages()' => sub { 'subtag' => 'en', 'iso639_2_code' => 'eng', 'description' => 'English', - 'language_description' => 'English (English)', + 'language_description' => 'English', 'type' => 'language' }, { @@ -188,7 +188,7 @@ subtest 'getLanguages()' => sub { ); # Test 2: Specific language without full translations - $expected->[2]->{language_description} = "Español (Español)"; + $expected->[2]->{language_description} = "Español"; $languages = getLanguages('es'); cmp_deeply( $languages, $expected, @@ -197,7 +197,7 @@ subtest 'getLanguages()' => sub { # Test 3: Specific language with translations $expected->[0]->{language_description} = "Anglais (English)"; - $expected->[1]->{language_description} = "Français (Français)"; + $expected->[1]->{language_description} = "Français"; $expected->[2]->{language_description} = "Espagnol (Español)"; $languages = getLanguages('fr'); cmp_deeply( -- 2.47.1