From 4e9dd5d25f5dfcebcc7a9560e23d2ba0b90d6418 Mon Sep 17 00:00:00 2001 From: Julian FIOL Date: Mon, 4 May 2015 11:08:14 +0200 Subject: [PATCH] [SIGNED-OFF] 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 --- 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 e8054d3..a5b4362 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'); -- 1.7.9.5