From 5cbffcd94f04031c3909cb9b4587cd82435ac22a Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Fri, 20 Mar 2020 15:07:27 +0000 Subject: [PATCH] Bug 24759: (follow-up) Fix tests Earlier tests delete borrowers before issues, can cause a constraint failure Wrong test count --- t/db_dependent/Koha/Item.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/db_dependent/Koha/Item.t b/t/db_dependent/Koha/Item.t index eac8ad6ec3..c42d8968bc 100644 --- a/t/db_dependent/Koha/Item.t +++ b/t/db_dependent/Koha/Item.t @@ -153,10 +153,10 @@ subtest 'pickup_locations' => sub { # Cleanup database Koha::Holds->search->delete; + $dbh->do('DELETE FROM issues'); Koha::Patrons->search->delete; Koha::Items->search->delete; Koha::Libraries->search->delete; - $dbh->do('DELETE FROM issues'); Koha::CirculationRules->search->delete; Koha::CirculationRules->set_rules( { @@ -331,7 +331,7 @@ subtest 'pickup_locations' => sub { }; subtest 'renewal_branchcode' => sub { - plan tests => 15; + plan tests => 13; $schema->storage->txn_begin; -- 2.11.0