From ae5a199a551aa8a08f5d0c5b2338aeb194aba0c7 Mon Sep 17 00:00:00 2001 From: Julian FIOL Date: Mon, 4 May 2015 11:08:14 +0200 Subject: [PATCH] Bug 14097: Delete table issues before testing If we delete all biblio DB, we could have some troubles with foreign keys Signed-off-by: Bernardo Gonzalez Kriegel Signed-off-by: Jonathan Druart Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com --- t/db_dependent/UsageStats.t | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/t/db_dependent/UsageStats.t b/t/db_dependent/UsageStats.t index e8054d3eaf..a5b43628e8 100644 --- a/t/db_dependent/UsageStats.t +++ b/t/db_dependent/UsageStats.t @@ -18,7 +18,6 @@ use Modern::Perl; use Test::More tests => 552; use t::lib::Mocks qw(mock_preference); use POSIX qw(strftime); -use Data::Dumper; BEGIN { use_ok('C4::UsageStats'); @@ -42,6 +41,8 @@ can_ok( my $dbh = C4::Context->dbh; $dbh->{AutoCommit} = 0; $dbh->{RaiseError} = 1; + +$dbh->do('DELETE FROM issues'); $dbh->do('DELETE FROM biblio'); $dbh->do('DELETE FROM items'); $dbh->do('DELETE FROM auth_header'); -- 2.39.5