From 1808f51ff63eace13da84951469f76693f72de34 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] [PASSED QA] Bug 13419: (follow-up) Add tests - remove existing shelves

Works as expected.
Signed-off-by: Marc Veron <veron@veron.ch>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
---
 t/db_dependent/Utils/Datatables_Virtualshelves.t |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

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;
-- 
1.7.2.5