Bugzilla – Attachment 104403 Details for
Bug 13547
Item field 'Materials specified' would be useful to see in OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13547: (QA follow-up) Add basic tests
Bug-13547-QA-follow-up-Add-basic-tests.patch (text/plain), 1.37 KB, created by
Martin Renvoize (ashimema)
on 2020-05-06 07:51:33 UTC
(
hide
)
Description:
Bug 13547: (QA follow-up) Add basic tests
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2020-05-06 07:51:33 UTC
Size:
1.37 KB
patch
obsolete
>From 858ac9335bfed35a2cca1783ebb247109b36e246 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Wed, 6 May 2020 08:50:54 +0100 >Subject: [PATCH] Bug 13547: (QA follow-up) Add basic tests > >--- > .../Koha/Template/Plugin/ColumnsSettings.t | 25 +++++++++++++++++++ > 1 file changed, 25 insertions(+) > create mode 100644 t/db_dependent/Koha/Template/Plugin/ColumnsSettings.t > >diff --git a/t/db_dependent/Koha/Template/Plugin/ColumnsSettings.t b/t/db_dependent/Koha/Template/Plugin/ColumnsSettings.t >new file mode 100644 >index 0000000000..6a9777719f >--- /dev/null >+++ b/t/db_dependent/Koha/Template/Plugin/ColumnsSettings.t >@@ -0,0 +1,25 @@ >+#!/usr/bin/perl >+ >+use Modern::Perl; >+ >+use C4::Context; >+use Koha::DateUtils; >+ >+use Test::MockModule; >+use Test::More tests => 3; >+use t::lib::Mocks; >+ >+BEGIN { >+ use_ok('Koha::Template::Plugin::ColumnsSettings', "Can use Koha::Template::Plugin::ColumnsSettings"); >+} >+ >+ok( my $settings = Koha::Template::Plugin::ColumnsSettings->new(), 'Able to instantiate template plugin' ); >+ >+subtest "is_hidden" => sub { >+ plan tests => 2; >+ >+ is( $settings->is_hidden('opac', 'biblio-detail', 'holdingst', 'item_materials'), 1, 'Returns true if the column is hidden'); >+ is( $settings->is_hidden('opac', 'biblio-detail', 'holdingst', 'item_callnumber'), 0, 'Returns false if the column is not hidden'); >+}; >+ >+1; >-- >2.20.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 13547
:
100199
|
100279
|
102014
|
102015
|
103172
|
103188
|
103189
|
104402
| 104403