Bug 5327 added unit tests for C4/Scheduler.pm
Signed-off-by: Chris Hall <chrish@catalyst.net.nz> (cherry picked from commit1e2e7b9dd8) Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com> (cherry picked from commita36582632d) Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
This commit is contained in:
parent
cf398b8ab4
commit
cc9771816f
|
|
@ -6,9 +6,14 @@
|
|||
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");
|
||||
|
|
|
|||
Loading…
Reference in New Issue