From 83fd8b1bdab9f02d36cf76c1e22317bc6c0aa7c8 Mon Sep 17 00:00:00 2001 From: Sam Sanders Date: Thu, 19 Jan 2012 13:53:15 +1300 Subject: [PATCH] [SIGNED-OFF]Bug 5327 added tests for C4/Labels.pm Signed-off-by: Chris Hall --- t/Labels.t | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/t/Labels.t b/t/Labels.t index 2450794..7d5b13c 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,13 @@ 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'); + + -- 1.7.4.1