Bugzilla – Attachment 186667 Details for
Bug 40845
t/Koha/Manual.t only passes for 25.05 and 25.06
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40845: Remove hardcoded Koha version from t/Koha/Manual.t
Bug-40845-Remove-hardcoded-Koha-version-from-tKoha.patch (text/plain), 2.02 KB, created by
Jonathan Druart
on 2025-09-22 10:08:15 UTC
(
hide
)
Description:
Bug 40845: Remove hardcoded Koha version from t/Koha/Manual.t
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2025-09-22 10:08:15 UTC
Size:
2.02 KB
patch
obsolete
>From 8ccee49103ad42c1e87b385f8daf441691e02583 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 22 Sep 2025 12:04:22 +0200 >Subject: [PATCH] Bug 40845: Remove hardcoded Koha version from t/Koha/Manual.t > >Test plan: >Update the version in DB: >> update systempreferences set value="25.1100000" where variable="version"; >restart_all >prove t/Koha/Manual.t >--- > t/Koha/Manual.t | 13 +++++++------ > 1 file changed, 7 insertions(+), 6 deletions(-) > >diff --git a/t/Koha/Manual.t b/t/Koha/Manual.t >index 1f9dc539efe..1adaf8f1b1c 100755 >--- a/t/Koha/Manual.t >+++ b/t/Koha/Manual.t >@@ -24,16 +24,17 @@ use Koha::Manual; > > subtest 'VueJS components' => sub { > >- my $tests = { >+ my $version = Koha::Manual::_get_help_version(); >+ my $tests = { > q{http://localhost:8081/cgi-bin/koha/erm/agreements} => >- q{https://koha-community.org/manual/25.05/en/html/erm.html#agreements}, >- q{/koha/erm/agreements} => q{https://koha-community.org/manual/25.05/en/html/erm.html#agreements}, >+ qq{https://koha-community.org/manual/$version/en/html/erm.html#agreements}, >+ q{/koha/erm/agreements} => qq{https://koha-community.org/manual/$version/en/html/erm.html#agreements}, > q{/koha/erm/agreements/add} => >- q{https://koha-community.org/manual/25.05/en/html/erm.html#create-an-agreement-record}, >+ qq{https://koha-community.org/manual/$version/en/html/erm.html#create-an-agreement-record}, > q{/koha/erm/agreements/edit/1} => >- q{https://koha-community.org/manual/25.05/en/html/erm.html#create-an-agreement-record}, >+ qq{https://koha-community.org/manual/$version/en/html/erm.html#create-an-agreement-record}, > q{/koha/erm/agreements?by_expired=true&max_expiration_date=2025-06-24} => >- q{https://koha-community.org/manual/25.05/en/html/erm.html#agreements}, >+ qq{https://koha-community.org/manual/$version/en/html/erm.html#agreements}, > }; > > plan tests => scalar keys %$tests; >-- >2.34.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 40845
: 186667