Bug 5327 litte fix for Background tests
This commit is contained in:
parent
1144c92ffc
commit
c8ba99e155
1 changed files with 6 additions and 3 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue