From 6b246c94dad9a08bfac5ceee9f2636e7803b29b8 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 --- 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.24.1 (Apple Git-126)