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

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Aleisha Amohia <aleisha@catalyst.net.nz>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 8358957f57)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
(cherry picked from commit f298d75280)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Jonathan Druart 2025-09-22 12:04:22 +02:00 committed by Fridolin Somers
parent f711c48bcd
commit bc7df6e6f1
No known key found for this signature in database
GPG Key ID: 9A8E73E2A8B96537
1 changed files with 7 additions and 6 deletions

View File

@ -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;