Bugzilla – Attachment 183447 Details for
Bug 39712
Query parameters break the manual mappings in vue modules
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39712: Add tests
Bug-39712-Add-tests.patch (text/plain), 2.37 KB, created by
PTFS Europe Sandboxes
on 2025-06-24 12:26:37 UTC
(
hide
)
Description:
Bug 39712: Add tests
Filename:
MIME Type:
Creator:
PTFS Europe Sandboxes
Created:
2025-06-24 12:26:37 UTC
Size:
2.37 KB
patch
obsolete
>From 115f1a84b2f7f8118578ae61535a8474df5b6827 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 24 Jun 2025 12:21:23 +0200 >Subject: [PATCH] Bug 39712: Add tests > >Signed-off-by: Aude Charillon <aude.charillon@openfifth.co.uk> >--- > t/Koha/Manual.t | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 48 insertions(+) > create mode 100755 t/Koha/Manual.t > >diff --git a/t/Koha/Manual.t b/t/Koha/Manual.t >new file mode 100755 >index 0000000000..1f9dc539ef >--- /dev/null >+++ b/t/Koha/Manual.t >@@ -0,0 +1,48 @@ >+#!/usr/bin/perl >+ >+# This file is part of Koha. >+# >+# Koha is free software; you can redistribute it and/or modify it >+# under the terms of the GNU General Public License as published by >+# the Free Software Foundation; either version 3 of the License, or >+# (at your option) any later version. >+# >+# Koha is distributed in the hope that it will be useful, but >+# WITHOUT ANY WARRANTY; without even the implied warranty of >+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >+# GNU General Public License for more details. >+# >+# You should have received a copy of the GNU General Public License >+# along with Koha; if not, see <http://www.gnu.org/licenses>. >+ >+use Modern::Perl; >+ >+use Test::NoWarnings; >+use Test::More tests => 2; >+ >+use Koha::Manual; >+ >+subtest 'VueJS components' => sub { >+ >+ 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}, >+ q{/koha/erm/agreements/add} => >+ q{https://koha-community.org/manual/25.05/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}, >+ 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}, >+ }; >+ >+ plan tests => scalar keys %$tests; >+ >+ my $language = 'en'; >+ while ( my ( $refer, $expected ) = each(%$tests) ) { >+ is( >+ Koha::Manual::get_url( $refer, $language ), $expected, >+ sprintf( "%s should link to %s", $refer, $expected ) >+ ); >+ } >+}; >-- >2.39.5
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 39712
:
183437
|
183438
|
183439
|
183440
|
183441
| 183447 |
183448
|
183449
|
183450
|
183451