Bug 14368: [Follow-up] Fix tests

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>
This commit is contained in:
Matthias Meusburger 2015-09-16 14:54:13 +02:00 committed by Tomas Cohen Arazi
parent c34c8ee853
commit 0f56f2b7fc

View file

@ -53,8 +53,9 @@ is(Koha::Borrower::Discharge::generate_as_pdf,undef,"Confirm failure when lackin
Koha::Borrower::Discharge::discharge({ borrowernumber => $borrowernumber });
is( Koha::Borrower::Discharge::is_discharged({ borrowernumber => $borrowernumber }), 1, 'The patron has been discharged' );
is(Koha::Borrower::Debarments::IsDebarred($borrowernumber), '9999-12-31', 'The patron has been debarred after discharge');
Koha::Borrower::Debarments::DelDebarment($borrowernumber);
is( Koha::Borrower::Discharge::is_discharged({ borrowernumber => $borrowernumber }), 1, 'The patron is not discharged after the restriction has been lifted' );
Koha::Borrower::Debarments::DelUniqueDebarment({'borrowernumber' => $borrowernumber, 'type' => 'DISCHARGE'});
ok(! Koha::Borrower::Debarments::IsDebarred($borrowernumber), 'The debarment has been lifted');
ok(! Koha::Borrower::Discharge::is_discharged({ borrowernumber => $borrowernumber }), 'The patron is not discharged after the restriction has been lifted' );
# Check if PDF::FromHTML is installed.
my $check = eval { require PDF::FromHTML; };