From 8a4f5e75934f61d6f4f987bbbab5632c8abdb4ed Mon Sep 17 00:00:00 2001 From: johnboy Date: Tue, 18 Jan 2011 11:34:39 +1300 Subject: [PATCH] bug 5327 started testing Signed-off-by: Chris Cormack (cherry picked from commit 80f8c41e4c5da0263b25b6c4bfd894f0113777cc) Signed-off-by: Chris Nighswonger --- t/BackgroundJob.t | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/t/BackgroundJob.t b/t/BackgroundJob.t index 8885f054f1..faee9c1ff9 100644 --- a/t/BackgroundJob.t +++ b/t/BackgroundJob.t @@ -6,10 +6,28 @@ use strict; use warnings; -use Test::More tests => 1; +use Test::More tests => 8; BEGIN { use_ok('C4::BackgroundJob'); } +#my ($sessionID, $job_name, $job_invoker, $num_work_units) = @_; +my $background; +ok ($background=C4::BackgroundJob->new); +ok ($background->id); + +$background->name("George"); +is ($background->name, "George", "testing name"); + +$background->invoker("enjoys"); +is ($background->invoker, "enjoys", "testing invoker"); + +$background->progress("testing"); +is ($background->progress, "testing", "testing progress"); + +ok ($background->status); + +$background->size("56"); +is ($background->size, "56", "testing size"); -- 2.39.5