From dbf3a3df34183f9baaf6d19957378ead9de291f5 Mon Sep 17 00:00:00 2001 From: Jorgia Kelsey Date: Thu, 19 Jan 2012 12:30:05 +1300 Subject: [PATCH] Bug 5327 added unit tests for C4/Barcodes_PrinterConfig.pm Signed-off-by: Chris Hall (cherry picked from commit 1a20feb4caa812d49eb8861b06ebc81164ea66c1) Signed-off-by: Chris Nighswonger --- t/Barcodes_PrinterConfig.t | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/t/Barcodes_PrinterConfig.t b/t/Barcodes_PrinterConfig.t index 21e2d6a738..94102e5c58 100755 --- a/t/Barcodes_PrinterConfig.t +++ b/t/Barcodes_PrinterConfig.t @@ -6,9 +6,17 @@ use strict; use warnings; -use Test::More tests => 1; +use Test::More tests => 6; BEGIN { use_ok('C4::Barcodes::PrinterConfig'); } +is(C4::Barcodes::PrinterConfig::setPositionsForY(), "0", "testing setPositionsForY returns'0' when given no arguments"); +is(C4::Barcodes::PrinterConfig::setPositionsForX(), "0", "testing setPositionsForX returns'0' when given no arguments"); + +is(C4::Barcodes::PrinterConfig::setPositionsForY(undef, undef, 5), "5", "testing setPositionsForY returns'5' when given (undef, undef, 5)"); +is(C4::Barcodes::PrinterConfig::setPositionsForX(undef, undef, 5), "5", "testing setPositionsForX returns'5' when given (undef, undef, 5)"); + + +is(C4::Barcodes::PrinterConfig::labelsPage(), "0", "testing labelsPage returns'0' when given no arguments"); -- 2.39.5