3b8a4f21be
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> https://bugs.koha-community.org/show_bug.cgi?id=28909 Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
37 lines
1.1 KiB
Perl
Executable file
37 lines
1.1 KiB
Perl
Executable file
#!/usr/bin/perl
|
|
|
|
# This file is part of Koha.
|
|
#
|
|
# Koha is free software; you can redistribute it and/or modify it
|
|
# under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation; either version 3 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# Koha is distributed in the hope that it will be useful, but
|
|
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with Koha; if not, see <http://www.gnu.org/licenses>.
|
|
|
|
use Modern::Perl;
|
|
|
|
use Koha::Illrequest::SupplierUpdateProcessor;
|
|
|
|
use Test::More tests => 3;
|
|
use Test::Warn;
|
|
|
|
my $processor = Koha::Illrequest::SupplierUpdateProcessor->new(
|
|
'test_type',
|
|
'test_name',
|
|
'Test processor name'
|
|
);
|
|
|
|
use_ok('Koha::Illrequest::SupplierUpdateProcessor');
|
|
|
|
isa_ok( $processor, 'Koha::Illrequest::SupplierUpdateProcessor' );
|
|
|
|
warning_like {
|
|
$processor->run()
|
|
} qr/run should only be invoked by a subclass/, 'Invoking base class "run" warns';
|