From cc9771816f4fcaad6891dfc3f5d3932bc0d249df Mon Sep 17 00:00:00 2001 From: Kate Henderson Date: Thu, 19 Jan 2012 14:29:53 +1300 Subject: [PATCH] Bug 5327 added unit tests for C4/Scheduler.pm Signed-off-by: Chris Hall (cherry picked from commit 1e2e7b9dd8614dd7729ecdebb6b6c99ad52d602a) Signed-off-by: Chris Nighswonger (cherry picked from commit a36582632d01340e7943fdd1dc4a0608b9a04609) Signed-off-by: Chris Nighswonger --- t/Scheduler.t | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/t/Scheduler.t b/t/Scheduler.t index 5fd05b3872..f0f02e11f9 100644 --- a/t/Scheduler.t +++ b/t/Scheduler.t @@ -6,9 +6,14 @@ use strict; use warnings; -use Test::More tests => 1; +use Test::More tests => 6; BEGIN { use_ok('C4::Scheduler'); } +ok(C4::Scheduler::get_jobs(), "testing get_jobs with no arguments"); +ok(C4::Scheduler::get_at_jobs(), "testing get_at_jobs with no arguments"); +is(C4::Scheduler::get_at_job(), "0", "testing get_at_job returns '0' when given no arguments"); +is(C4::Scheduler::add_at_job(), "", "testing add_at_job with no arguments"); +is(C4::Scheduler::remove_at_job(), undef , "testing remove_at_job returns undef when given no arguments"); -- 2.39.5