From 7195f371032328242aeb99335f5cbae3e7902063 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 Signed-off-by: Andrew Fuerste-Henry Signed-off-by: Jonathan Druart Signed-off-by: Martin Renvoize --- 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 b807b881ce..9ee2f77647 100644 --- a/t/db_dependent/Koha/Item.t +++ b/t/db_dependent/Koha/Item.t @@ -155,10 +155,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( { @@ -439,7 +439,7 @@ subtest 'deletion' => sub { }; subtest 'renewal_branchcode' => sub { - plan tests => 15; + plan tests => 13; $schema->storage->txn_begin; -- 2.20.1