Koha/t/Scheduler.t
Jonathan Druart f1f9c6dc74 Bug 26384: Fix executable flags
.pm must not have -x
.t must have -x
.pl must have -x

Test plan:
Apply only the first patch, run the tests and confirm that the failures
make sense
Apply this patch and confirm that the test now returns green

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2020-09-11 09:56:56 +02:00

19 lines
604 B
Perl
Executable file

#!/usr/bin/perl
#
# This Koha test module is a stub!
# Add more tests here!!!
use strict;
use warnings;
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");