From 3b9722c7dd08009a7baabdb84ad108462a1ba3c4 Mon Sep 17 00:00:00 2001 From: Sam Sanders Date: Thu, 19 Jan 2012 13:53:15 +1300 Subject: [PATCH] Bug 5327 added tests for C4/Labels.pm Signed-off-by: Chris Hall --- t/Labels.t | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/t/Labels.t b/t/Labels.t index 2450794cce..823511b5be 100644 --- a/t/Labels.t +++ b/t/Labels.t @@ -20,7 +20,7 @@ use strict; use warnings; -use Test::More tests => 2; +use Test::More tests => 6; BEGIN { use_ok('C4::Labels::Label'); @@ -33,3 +33,11 @@ my $expected_fields = [ { code => 'itemcallnumber', desc => 'itemcallnumber' }, ]; is_deeply($parsed_fields, $expected_fields, '"callnumber" in label layout alias for "itemcallnumber" per bug 5653'); + +is(C4::Labels::Label::_check_params(),"0",'test checking parameters'); + +ok(C4::Labels::Label::_guide_box(), 'test guide box with nothing entered'); + +ok(C4::Labels::Label::_get_text_fields(), 'test getting textx fields'); + +is(C4::Labels::Label::_split_lccn(),"0", 'test when _split_lccn is null'); -- 2.39.5