Koha/t/Scheduler.t
Jonathan Druart 5b69e6df98
Bug 38944: Add Test::NoWarnings to tests no producing warnings
This has been generated.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2025-03-13 17:25:03 +01:00

20 lines
709 B
Perl
Executable file

#!/usr/bin/perl
#
# This Koha test module is a stub!
# Add more tests here!!!
use strict;
use warnings;
use Test::NoWarnings;
use Test::More tests => 7;
BEGIN {
use_ok( 'C4::Scheduler', qw( get_jobs get_at_jobs get_at_job add_at_job remove_at_job ) );
}
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" );