From c8ba99e155cc3357edfc30c23e4b4e5797b241c3 Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Tue, 18 Jan 2011 16:35:08 +1300 Subject: [PATCH] Bug 5327 litte fix for Background tests --- t/BackgroundJob.t | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/t/BackgroundJob.t b/t/BackgroundJob.t index faee9c1ff9..2726eb3fe6 100644 --- a/t/BackgroundJob.t +++ b/t/BackgroundJob.t @@ -5,16 +5,19 @@ use strict; use warnings; - +use C4::Auth; +use CGI; use Test::More tests => 8; BEGIN { use_ok('C4::BackgroundJob'); } - +my $query = new CGI; +my ($userid, $cookie, $sessionID) = &checkauth($query, 1); #my ($sessionID, $job_name, $job_invoker, $num_work_units) = @_; my $background; -ok ($background=C4::BackgroundJob->new); +diag $sessionID; +ok ($background=C4::BackgroundJob->new($sessionID)); ok ($background->id); $background->name("George");