Koha/t
Joe Atzberger 51e8fc2cb6 bug 3435: AddReturn overhaul.
Required for SIP checkin implementation, but also for internal correctness.
AddReturn had too many things going on, with no guarantee of data being
available for the later calls.  At some point we started tacking on all the
branch transfer logic without testing edge cases.  In particular, $borrower
is not checked to be sure it is defined, considering the item may not have been
checked out so no borrower would be associated.  That means that CircControl
of "PatronLibrary" would be inaccurate, Circ Alerts will be totally confused
(untargeted), and the Fix... subs would fail.

Note that *many* errors are still present in _FixAccountForLostAndReturned, including
those where comments are added, such that it might behave strangely even with $borrower.

Renamed the internal subs with leading underscore, per convention.  Changed
the arguments to be scalars when only scalars are needed, not entire objects.
Added depth to WrongBranch message that includes Rightbranch.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2009-07-30 11:06:50 -04:00
..
data/db_schemas kohabug 2076: add DB schema creation scripts from past versions 2008-05-11 05:40:47 -05:00
db_dependent Allow LDAP test to bail if LDAP disabled. 2009-03-05 09:49:10 -06:00
lib bug 3435: AddReturn overhaul. 2009-07-30 11:06:50 -04:00
Amazon.t Move Amazon.pm to External/ directory 2009-03-27 17:23:49 -05:00
Barcodes_PrinterConfig.t Total Test Overhaul! Most of these were stubs, and still are. 2007-10-18 16:26:44 -05:00
Bookfund.t Total Test Overhaul! Most of these were stubs, and still are. 2007-10-18 16:26:44 -05:00
Bookseller.t Total Test Overhaul! Most of these were stubs, and still are. 2007-10-18 16:26:44 -05:00
Boolean.t test suite cleanup 2008-01-08 14:08:02 -06:00
Branch.t Total Test Overhaul! Most of these were stubs, and still are. 2007-10-18 16:26:44 -05:00
Calendar.t Total Test Overhaul! Most of these were stubs, and still are. 2007-10-18 16:26:44 -05:00
Charset.t IMPORTANT - refactor MARC character set handling 2008-02-03 07:23:56 -06:00
Circulation_barcodedecode.t barcodedecode() did not always return barcode 2009-01-05 15:55:14 -06:00
database_dependent.pl test suite refactoring 2008-05-11 06:49:04 -05:00
Dates.t Bug 2842: ->regexp('syspref') failed for users of iso dateformat. 2009-01-06 20:24:46 -06:00
Debug.t C4::Debug - Centralized debug switches module, test and proof conversion (in Dates.pm) 2008-01-23 21:27:20 -06:00
dummy.t Total Test Overhaul! Most of these were stubs, and still are. 2007-10-18 16:26:44 -05:00
Input.t Input.t permissions fix 2007-11-16 13:24:37 -06:00
Koha.t Total Test Overhaul! Most of these were stubs, and still are. 2007-10-18 16:26:44 -05:00
Labels_split_ddcn.t Bug 2500 Tweaking DDCN Split for Hyphenated Volumn Numbers 2009-05-27 10:45:36 -05:00
Labels_split_lccn.t Test for LCCN splitting. 2009-03-11 08:37:27 -05:00
Languages.t Total Test Overhaul! Most of these were stubs, and still are. 2007-10-18 16:26:44 -05:00
Maintainance.t Total Test Overhaul! Most of these were stubs, and still are. 2007-10-18 16:26:44 -05:00
Makefile Bug 2524: improving the submitted test reports 2008-08-18 07:17:34 -05:00
Members_Attributes.t Allow option to preserve Extended Attributes on patron import update. 2009-05-28 06:50:39 -05:00
Output.t C4::Output tests -- removed inccorect tests 2008-01-08 14:07:23 -06:00
Record.t Total Test Overhaul! Most of these were stubs, and still are. 2007-10-18 16:26:44 -05:00
Review.t Total Test Overhaul! Most of these were stubs, and still are. 2007-10-18 16:26:44 -05:00
rewrite-config-test.PL improvements to automated tests, including a testing database 2008-04-21 11:26:27 -05:00
Scrubber.t Single slash added in test text string. 2008-05-29 06:22:50 -05:00
smolder_smoke_signal Bug 2524: Adding script to submit test reports to smolder server 2008-08-18 07:16:35 -05:00
Stats.t Total Test Overhaul! Most of these were stubs, and still are. 2007-10-18 16:26:44 -05:00