From 1ee2fdd9124d1fe2c916819887fcd477fe764465 Mon Sep 17 00:00:00 2001 From: Yohann Dufour Date: Wed, 9 Jul 2014 09:25:05 +0200 Subject: [PATCH] Bug 12470: Allow execution of UTs on a DB with items (fix the order) Fix of the order of the removal of items and issues --- t/db_dependent/Circulation/CheckIfIssuedToPatron.t | 2 +- t/db_dependent/Circulation/CheckValidBarcode.t | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/t/db_dependent/Circulation/CheckIfIssuedToPatron.t b/t/db_dependent/Circulation/CheckIfIssuedToPatron.t index 4768e9b..3ae7d0d 100644 --- a/t/db_dependent/Circulation/CheckIfIssuedToPatron.t +++ b/t/db_dependent/Circulation/CheckIfIssuedToPatron.t @@ -21,8 +21,8 @@ my $dbh = C4::Context->dbh; $dbh->{AutoCommit} = 0; $dbh->{RaiseError} = 1; -$dbh->do(q|DELETE FROM items|); $dbh->do(q|DELETE FROM issues|); +$dbh->do(q|DELETE FROM items|); $dbh->do(q|DELETE FROM borrowers|); $dbh->do(q|DELETE FROM branches|); $dbh->do(q|DELETE FROM biblio|); diff --git a/t/db_dependent/Circulation/CheckValidBarcode.t b/t/db_dependent/Circulation/CheckValidBarcode.t index b7214b7..037e404 100644 --- a/t/db_dependent/Circulation/CheckValidBarcode.t +++ b/t/db_dependent/Circulation/CheckValidBarcode.t @@ -18,8 +18,8 @@ my $dbh = C4::Context->dbh; $dbh->{AutoCommit} = 0; $dbh->{RaiseError} = 1; -$dbh->do(q|DELETE FROM items|); $dbh->do(q|DELETE FROM issues|); +$dbh->do(q|DELETE FROM items|); $dbh->do(q|DELETE FROM borrowers|); $dbh->do(q|DELETE FROM branches|); $dbh->do(q|DELETE FROM biblio|); -- 1.9.1