Bug 13456: Serials/Claims.t expects no subscriptions
authorMark Tompsett <mtompset@hotmail.com>
Fri, 12 Dec 2014 21:32:40 +0000 (16:32 -0500)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Fri, 19 Dec 2014 20:32:28 +0000 (17:32 -0300)
However, this is an unreasonable assumption for a system which
is in use (either lots of testing or production).

TEST PLAN
---------
1) Have a supplier with a late subscription.
2) prove t/db_dependent/Serials/Claims.t
   -- will fail
3) apply patch
4) prove t/db_dependent/Serials/Claims.t
   -- success
5) run koha qa test tools

Signed-off-by: Paola Rossi <paola.rossi@cineca.it>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
t/db_dependent/Serials/Claims.t

index 60f851a..83d585e 100644 (file)
@@ -12,6 +12,7 @@ $dbh->{AutoCommit} = 0;
 $dbh->{RaiseError} = 1;
 
 $dbh->do(q|DELETE FROM issues|);
+$dbh->do(q|DELETE FROM subscription|);
 
 my $branchcode = 'CPL';
 my $bpid = AddBudgetPeriod({