Koha/t/db_dependent
Ian Walls ff29f978af 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>
2012-04-18 17:01:24 +02:00
..
Labels Bug 7215 : The Module changed, but the tests weren't updated to reflect that 2011-12-13 14:25:46 +01:00
LDAP DB-dependent tests moved 2008-01-08 14:07:38 -06:00
lib Bug 6990 follow up PODDOC & unit test updating 2012-01-17 12:07:03 +01:00
needs_user_input Shifting the tests that need user input to their own directory, they cant be used by the automated tester 2010-10-06 07:58:35 -04:00
Accounts.t Bug 5327 Made test file for Accounts.pm 2011-01-20 19:57:50 +13:00
Acquisition.t Bug 5374 [SIGNED-OFF] Followup: adds conditional check to unit test for late orders 2012-04-18 17:01:24 +02:00
Amazon.t Bug 5327 - Now we are doing db calls, we need to shift this to t/db_dependent 2011-01-19 13:38:52 +13:00
Auth.t Bug 5477 [SIGN-OFF] Fix test cases that require database access 2011-01-29 17:02:31 +13:00
Auth_with_cas.t Bug 5477 [SIGN-OFF] Fix test cases that require database access 2011-01-29 17:02:31 +13:00
BackgroundJob.t bug 5327 add tests for C4/BackgroundJob.pm 2012-01-17 15:31:56 +01:00
Barcodes.t Temporary fix for bug 2483: t/Barcodes.t has database dependent tests in it 2008-08-09 06:49:21 -05:00
Biblio.t Add unit tests to ensure bug 5683 doesn't reappear 2011-06-02 08:46:40 +12:00
Budgets.t cleanup of DB-dependent fund test cases 2010-10-06 11:13:07 -04:00
Context.t more test case fixes 2010-10-06 11:56:32 -04:00
database_dependent.pl Bug 5327 shifting database dependent modules and scripts to t/db_dependent 2011-01-18 16:18:37 +13:00
External_BakerTaylor.t Bug 5327: Unit tests for C4/Exteral/BakerTaylor.pm 2011-12-07 16:17:05 +01:00
Koha.t bug_6253: Unified member Search() 2011-10-19 16:23:02 +13:00
Log.t Fixing a broken test 2011-09-26 11:55:58 +13:00
Members.t Bug 7333 - modifying Members.t to use a branchcode that exists in the sample data 2011-12-15 18:13:29 +01:00
Record.t Bug 7141 : Changing test to match new formatting of xsl style sheet 2011-12-08 10:51:25 +01:00
Reports_Guided.t Bug 5477 [SIGN-OFF] Fix test cases that require database access 2011-01-29 17:02:31 +13:00
Reserves.t bug_2830: Remove reserve when checking out if the borrower is not the first one in the reserve queue 2011-12-16 16:21:38 +01:00
Search.t Bug 7333 - Fixing up db_dependent/Search.t to use sample data Thanks to Chris N. for helping figure out that it was because there were no French stopwords in the DB that the test was failing. 2011-12-27 18:41:10 +01:00
Serials.t MT1883 : Serials enddate was not cleanly used 2009-11-11 14:00:11 +01:00
Serials_2.t Bug 5477 [SIGN-OFF] Fix test cases that require database access 2011-01-29 17:02:31 +13:00
Service.t Bug 5477 [SIGN-OFF] Fix test cases that require database access 2011-01-29 17:02:31 +13:00
SIP_ILS.t Bug 5327: Added unit test for C4/SIP/ILS/Transaction/RenewAll.pm 2011-12-16 15:43:04 +01:00
SQLHelper.t Bug 5327 : Fixing unit test for SQLHelper.pm 2011-12-07 16:17:10 +01:00
Suggestions.t Editing C4::Suggestions.pm 2009-09-30 11:29:23 +02:00
sysprefs.t Bug 6132: Add unit test for system preferences 2012-01-16 14:52:24 +01:00
Tags.t Bug 5477 [SIGN-OFF] Fix test cases that require database access 2011-01-29 17:02:31 +13:00
UploadedFile.t t/UploadedFile, updated comment 2011-12-07 16:37:31 +01:00
VirtualShelves.t fix typo/thinko in list test 2010-10-06 10:55:44 -04:00
VirtualShelves_Page.t Bug 5477 [SIGN-OFF] Fix test cases that require database access 2011-01-29 17:02:31 +13:00
XISBN.t Bug 5327 Cleaning up XISBN.t a bit 2011-01-18 22:52:02 +13:00