Bug 10719: (follow-up) clear existing loans before running circ tests
authorGalen Charlton <gmc@esilibrary.com>
Mon, 26 Aug 2013 14:49:17 +0000 (14:49 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 26 Aug 2013 14:49:17 +0000 (14:49 +0000)
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
t/db_dependent/Circulation.t

index 483ce84..1ef6271 100755 (executable)
@@ -21,6 +21,9 @@ my $dbh = C4::Context->dbh;
 $dbh->{AutoCommit} = 0;
 $dbh->{RaiseError} = 1;
 
+# Start with a clean slate
+$dbh->do('DELETE FROM issues');
+
 my $CircControl = C4::Context->preference('CircControl');
 my $HomeOrHoldingBranch = C4::Context->preference('HomeOrHoldingBranch');