From 178987dfa1f6736d1b89d078c1a8d2926f7636c9 Mon Sep 17 00:00:00 2001
From: Jonathan Druart <jonathan.druart@biblibre.com>
Date: Thu, 18 Dec 2014 15:40:52 +0100
Subject: [PATCH] Bug 13419: (follow-up) Add tests - remove existing shelves

---
 t/db_dependent/Utils/Datatables_Virtualshelves.t | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/t/db_dependent/Utils/Datatables_Virtualshelves.t b/t/db_dependent/Utils/Datatables_Virtualshelves.t
index c17c4b1..81766d7 100644
--- a/t/db_dependent/Utils/Datatables_Virtualshelves.t
+++ b/t/db_dependent/Utils/Datatables_Virtualshelves.t
@@ -34,6 +34,8 @@ my $dbh = C4::Context->dbh;
 $dbh->{AutoCommit} = 0;
 $dbh->{RaiseError} = 1;
 
+$dbh->do(q|DELETE FROM virtualshelves|);
+
 # Pick a categorycode from the DB
 my @categories   = C4::Category->all;
 my $categorycode = $categories[0]->categorycode;
-- 
2.1.0