Bugzilla – Attachment 107607 Details for
Bug 25852
If a layout is edited, the layout type will revert to barcode
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25852: Add tests
Bug-25852-Add-tests.patch (text/plain), 1.34 KB, created by
Katrin Fischer
on 2020-07-30 20:42:38 UTC
(
hide
)
Description:
Bug 25852: Add tests
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2020-07-30 20:42:38 UTC
Size:
1.34 KB
patch
obsolete
>From f3db55643c1138fd285ca6de37d1a9ab14fe2fbf Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 30 Jul 2020 11:59:44 +0200 >Subject: [PATCH] Bug 25852: Add tests > >Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > t/db_dependent/Creators/Lib.t | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Creators/Lib.t b/t/db_dependent/Creators/Lib.t >index 288257e7f8..4a86b5db0a 100644 >--- a/t/db_dependent/Creators/Lib.t >+++ b/t/db_dependent/Creators/Lib.t >@@ -18,7 +18,7 @@ > > use Modern::Perl; > use Graphics::Magick; >-use Test::More tests => 646; >+use Test::More tests => 647; > use Test::MockModule; > use t::lib::Mocks; > use t::lib::TestBuilder; >@@ -1099,6 +1099,11 @@ is( $label_types->[4]->{name}, 'Barcode', 'name is > is( $label_types->[4]->{desc}, 'Only the barcode is printed.', 'desc is good' ); > is( $label_types->[4]->{selected}, 0, 'selected is good' ); > >+$label_types->[0]->{selected} = 1; >+$label_types = get_label_types(); >+is( $label_types->[0]->{selected}, 0, 'get_label_types must returned a new structure (copied)' ); >+ >+ > # ---------- Testing get_font_types ----------------------- > my $font_types = get_font_types(); > >-- >2.11.0
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 25852
:
107571
|
107572
|
107573
|
107574
|
107607
|
107608
|
107609