Bugzilla – Attachment 192795 Details for
Bug 39745
Wrong system preference 'language' in test suite
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39745: Replace more occurrences in selenium tests
cea8280.patch (text/plain), 2.35 KB, created by
Jonathan Druart
on 2026-02-09 13:49:46 UTC
(
hide
)
Description:
Bug 39745: Replace more occurrences in selenium tests
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2026-02-09 13:49:46 UTC
Size:
2.35 KB
patch
obsolete
>From cea82805b9e41a1f4e9b7072d2c56284e8ffe380 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 9 Feb 2026 14:48:28 +0100 >Subject: [PATCH] Bug 39745: Replace more occurrences in selenium tests > >--- > t/Languages.t | 2 +- > t/db_dependent/selenium/00-onboarding.t | 4 ++-- > t/db_dependent/selenium/01-installation.t | 4 ++-- > 3 files changed, 5 insertions(+), 5 deletions(-) > >diff --git a/t/Languages.t b/t/Languages.t >index 8b81556f0b2..3c03a16f408 100755 >--- a/t/Languages.t >+++ b/t/Languages.t >@@ -41,7 +41,7 @@ $module_context->mock( > my ( $self, $pref ) = @_; > if ($return_undef) { > return; >- } elsif ( $pref eq 'language' || $pref eq 'OPACLanguages' ) { >+ } elsif ( $pref eq 'StaffInterfaceLanguages' || $pref eq 'OPACLanguages' ) { > return join ',', @languages; > } else { > return 'XXX'; >diff --git a/t/db_dependent/selenium/00-onboarding.t b/t/db_dependent/selenium/00-onboarding.t >index 49b543061a0..2f8158f0323 100755 >--- a/t/db_dependent/selenium/00-onboarding.t >+++ b/t/db_dependent/selenium/00-onboarding.t >@@ -177,8 +177,8 @@ SKIP: { > $s->submit_form; > > # Get the interface in the correct language >- C4::Context->set_preference( 'language', $languages->{$lang} ); >- C4::Context->set_preference( 'opaclanguages', $languages->{$lang} ); >+ C4::Context->set_preference( 'StaffInterfaceLanguages', $languages->{$lang} ); >+ C4::Context->set_preference( 'opaclanguages', $languages->{$lang} ); > > $s->click( { href => '/mainpage.pl', main => 'onboarding-step5' } ); > >diff --git a/t/db_dependent/selenium/01-installation.t b/t/db_dependent/selenium/01-installation.t >index 28de8cb625f..1dac6c55218 100755 >--- a/t/db_dependent/selenium/01-installation.t >+++ b/t/db_dependent/selenium/01-installation.t >@@ -160,8 +160,8 @@ SKIP: { > $s->submit_form; > > # Get the interface in the correct language >- C4::Context->set_preference( 'language', $languages->{$lang} ); >- C4::Context->set_preference( 'opaclanguages', $languages->{$lang} ); >+ C4::Context->set_preference( 'StaffInterfaceLanguages', $languages->{$lang} ); >+ C4::Context->set_preference( 'opaclanguages', $languages->{$lang} ); > > $s->click( { href => '/mainpage.pl', main => 'onboarding-step5' } ); > >-- >2.43.0 >
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 39745
:
181494
|
181498
|
181499
|
181551
|
181552
|
182103
|
182104
|
192016
| 192795