]> git.koha-community.org Git - koha.git/commit
Bug 11457: avoid spurious test failure in t/db_dependent/Bookseller.t
authorChris Cormack <chris@bigballofwax.co.nz>
Thu, 2 Jan 2014 04:15:56 +0000 (17:15 +1300)
committerFridolin Somers <fridolin.somers@biblibre.com>
Tue, 18 Feb 2014 08:46:21 +0000 (09:46 +0100)
commit67f1d5bb712ace988cad50f2ec2436b9b1ca9d4d
tree627a415f938a01cb2de161249ba59cd1d88a5f5b
parent57090a0cfe925b2292c115a2c3e96beb4fd4f1c1
Bug 11457: avoid spurious test failure in t/db_dependent/Bookseller.t

This patch clears the subscription table so tests pass correctly if
there happens to have been a subscription with an end date before
2013-08-01.

To test
1/ Add a subscription in the serials module, with an end date before
2013-08-01
2/ run prove -v t/db_dependent/Bookseller.t
   Notice tests 22 and 23 fail
3/ Apply patch
4/ run test again
5/ Notice tests succeed

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Tests now clean the subscription table before running
the tests, so that the will always pass.

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit 8209bf10269c36c1bb8d4b2da23fe356ab7a3568)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
t/db_dependent/Bookseller.t