From 15d77ed6eefe286bd9314653f6826ced333bba4c 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 --- t/Scheduler.t | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/t/Scheduler.t b/t/Scheduler.t index 5fd05b3..3cd7a16 100644 --- a/t/Scheduler.t +++ b/t/Scheduler.t @@ -6,9 +6,15 @@ 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"); + -- 1.7.4.1