]> git.koha-community.org Git - koha.git/commit
Bug 5374 [SIGNED-OFF] Followup: adds conditional check to unit test for late orders
authorIan Walls <koha.sekjal@gmail.com>
Mon, 19 Mar 2012 23:16:48 +0000 (19:16 -0400)
committerPaul Poulain <paul.poulain@biblibre.com>
Wed, 18 Apr 2012 15:01:24 +0000 (17:01 +0200)
commitff29f978af3950d39a2b10d440aac67b418bff26
treefe815c0840d3c577dc663de3a67f9da563b21707
parentbee324cec2a16c37e505557e5d8b19f8ad7889f0
Bug 5374 [SIGNED-OFF] Followup: adds conditional check to unit test for late orders

If there are no late orders in the database, the 5th unit test for C4/Acquisition.pm
fails, since no date is returned (and today's date is expected)

This patch adds a conditional check around whether any late orders are actually returned
by GetLateOrders. If so, tests proceed, if not, they're skipped.  This seems to quiet
the failures in the automated test suite.

http://bugs.koha-community.org/show_bug.cgi?id=5347

signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
t/db_dependent/Acquisition.t