From 6c66a88aea7579b67f869163c11fec70cd73b98c Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Wed, 20 Jan 2021 09:35:33 -0500 Subject: [PATCH] Bug 25808: (QA follow-up) Fix unit tests Signed-off-by: Jonathan Druart --- t/db_dependent/SIP/ILS.t | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/t/db_dependent/SIP/ILS.t b/t/db_dependent/SIP/ILS.t index d5031e5758..99c0df2147 100755 --- a/t/db_dependent/SIP/ILS.t +++ b/t/db_dependent/SIP/ILS.t @@ -126,7 +126,7 @@ subtest cancel_hold => sub { }; subtest checkout => sub { - plan tests => 1; + plan tests => 4; my $library = $builder->build_object ({ class => 'Koha::Libraries' }); my $patron = $builder->build_object( @@ -170,6 +170,7 @@ subtest checkout => sub { is( $transaction->{screen_msg},"Item already checked out to you: renewing item.","We get a success message when issue is renewed"); + $checkout->discard_changes(); is( $checkout->renewals, 1, "Renewals has been reduced"); }; -- 2.11.0