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 commit8358957f57) Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de> (cherry picked from commitf298d75280) Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
f711c48bcd
commit
bc7df6e6f1
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue