From 19d071910f0d772741bf3f3c6b6a0f052bf8be75 Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Sun, 4 Dec 2011 20:02:45 +1300 Subject: [PATCH] Bug 5327 : Complete coverage for BackgroundJob.pm Signed-off-by: Katrin Fischer Tests run without problems. --- t/db_dependent/BackgroundJob.t | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/t/db_dependent/BackgroundJob.t b/t/db_dependent/BackgroundJob.t index 2726eb3fe6..8106e02523 100644 --- a/t/db_dependent/BackgroundJob.t +++ b/t/db_dependent/BackgroundJob.t @@ -7,7 +7,7 @@ use strict; use warnings; use C4::Auth; use CGI; -use Test::More tests => 8; +use Test::More tests => 10; BEGIN { use_ok('C4::BackgroundJob'); @@ -34,3 +34,7 @@ ok ($background->status); $background->size("56"); is ($background->size, "56", "testing size"); +$background->finish("finished"); +is ($background->status,'completed', "testing finished"); + +ok ($background->results); # Will return undef unless finished \ No newline at end of file -- 2.39.5