Bugzilla – Attachment 176234 Details for
Bug 38646
C4::Languages::getLanguages is very unreasonably slow (100+ ms)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38646: Update unit test for change
Bug-38646-Update-unit-test-for-change.patch (text/plain), 1.99 KB, created by
Martin Renvoize (ashimema)
on 2025-01-08 13:47:27 UTC
(
hide
)
Description:
Bug 38646: Update unit test for change
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2025-01-08 13:47:27 UTC
Size:
1.99 KB
patch
obsolete
>From 50ffc4ad68fafdb1dd742ac8a4b5a96b7c821467 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >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 <martin.renvoize@ptfs-europe.com> >--- > 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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 38646
:
175262
|
176207
|
176208
|
176227
|
176228
|
176229
|
176231
|
176232
|
176233
| 176234