From 1d742a47bdda18217e0b8aa27f1abd5a73132578 Mon Sep 17 00:00:00 2001 From: Mark Tompsett Date: Thu, 24 Aug 2017 01:19:01 +0000 Subject: [PATCH] Bug 14385: Fix breaking issues constraint in ITerator test --- t/db_dependent/Koha/BiblioUtils/Iterator.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/db_dependent/Koha/BiblioUtils/Iterator.t b/t/db_dependent/Koha/BiblioUtils/Iterator.t index d436932..ac11cf7 100644 --- a/t/db_dependent/Koha/BiblioUtils/Iterator.t +++ b/t/db_dependent/Koha/BiblioUtils/Iterator.t @@ -30,10 +30,10 @@ use t::lib::Mocks; my $schema = Koha::Database->new()->schema(); $schema->storage->txn_begin(); -my $dbh = C4::Context->dbh; -$dbh->{RaiseError} = 1; +# Delete issues to prevent foreign constraint failures. # blank all biblios, biblioitems, and items. +$schema->resultset('Issue')->delete(); $schema->resultset('Biblio')->delete(); my $location = 'My Location'; -- 2.1.4