Koha-clms/t/lib/KohaTest
Andrew Moore 8ae66932cd Bug 2274 [3/5]: consolidating overdue notice cronjobs into one
This patch adds the misc/cronjobs/overdue_notices.pl script that is intended to replace
overduenotices.pl, overduenotices-30.pl and overduenotices-csv.pl. It adds messages to
the message_queue to be sent later (by process_message_queue.pl). It also marks borrowers
as debarred if their issues become too overdue.

It is intended to be run from cron nightly with usage something like:
0 2 * * * misc/cronjobs/overdue_notices.pl

C4::Members:
 - improved documentation on ModMember
 - made ModMember return a useful value (the return value of the database call)
 - added a DebarMember method
 - adding t/lib/KohaTest/Members/DebarMember.pm to test ModMember

misc/cronjobs/overdue_notices.pl
 - designed to replace overduenotices.pl, overduenotices-30.pl, and overduenotice-csv

Changes to C4::Letters:
 - EnqueueLetter now lets you pass in to_address and from_address which can override defaults
 - _send_message_by_email pays attention to these defaults.
 - now handles attachments with MIME::Lite

C4::Overdues
 - added GetBranchcodesWithOverdueRules
   - added t/lib/KohaTest/Overdues/GerBranchcodesWithOverdueRules.pm to test that.

circ/overdue.pl
 - replaced call to obsolete overduenotices-csv.pl with call to overdue_notices.pl

KohaTest:
 - added three helper methods: random_phone, random_email, random_ip
   - these can be used to populate example records
 - you can now pass an optional lengh to random_string

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-07-10 09:10:46 -05:00
..
Acquisition adding database-dependent test libs. 2008-04-21 11:26:28 -05:00
Biblio bug 2297: improve ModBiblio() to avoid duplicate item fields 2008-07-04 09:22:13 -05:00
Branch bug 1953: fixing potential SQL injection problems in C4::Branch::GetBranches 2008-05-12 15:07:17 -05:00
Calendar Bug 1953: adding tests and 2 corrections for C4::Calendar 2008-05-13 17:41:20 -05:00
Circulation Bug 2176 (3/5): adding methods to manage message_queue, new advance_notices.pl, new C4::SMS module 2008-06-20 13:04:52 -05:00
Dates bug 2295 [followup 2/2]: initialize data in startup method 2008-07-07 16:32:33 -05:00
Heading bug 2315: no crash if subfield code is a metacharacter 2008-07-08 09:36:11 -05:00
ImportBatch staging import - enhance record overlay behavior 2008-04-30 21:58:46 -05:00
Installer bug: 2176 improvements to database upgrade path 2008-06-20 17:47:36 -05:00
Items bug 2295 [3/4]: moving C4::Items tests into t/lib/KohaTest 2008-07-07 16:32:30 -05:00
Koha bug: 2272 - remove warning from C4::Koha::getitemtypeimagedir 2008-06-25 11:47:28 -05:00
Letters Bug 2176 (3/5): adding methods to manage message_queue, new advance_notices.pl, new C4::SMS module 2008-06-20 13:04:52 -05:00
Members Bug 2274 [3/5]: consolidating overdue notice cronjobs into one 2008-07-10 09:10:46 -05:00
Overdues Bug 2274 [3/5]: consolidating overdue notice cronjobs into one 2008-07-10 09:10:46 -05:00
SMS bug 2275: making SMS::Send module optional 2008-07-04 09:22:27 -05:00
Scripts bug 2087: test cases for misc/cronjobs/longoverdue.pl 2008-05-11 06:43:35 -05:00
Search SimpleSearch test cases - make more robust 2008-07-02 12:26:01 -05:00
Accounts.pm Commented out fixaccounts (not used anywhere). Also improved getnextacctno. 2008-05-29 07:04:37 -05:00
Acquisition.pm adding database-dependent test libs. 2008-04-21 11:26:28 -05:00
AuthoritiesMarc.pm bug 2088: test suite refactoring to deal with t/override_context_prefs.pm 2008-05-11 06:48:40 -05:00
Biblio.pm bug 2088: test suite refactoring to deal with t/override_context_prefs.pm 2008-05-11 06:48:40 -05:00
Branch.pm bug 1953: fixing potential SQL injection problems in C4::Branch::GetBranches 2008-05-12 15:07:17 -05:00
Breeding.pm bug 2088: test suite refactoring to deal with t/override_context_prefs.pm 2008-05-11 06:48:40 -05:00
Calendar.pm Bug 1953: adding tests and 2 corrections for C4::Calendar 2008-05-13 17:41:20 -05:00
Circulation.pm Bug 2176 (3/5): adding methods to manage message_queue, new advance_notices.pl, new C4::SMS module 2008-06-20 13:04:52 -05:00
Dates.pm bug 2088: test suite refactoring to deal with t/override_context_prefs.pm 2008-05-11 06:48:40 -05:00
Heading.pm bug 2315: no crash if subfield code is a metacharacter 2008-07-08 09:36:11 -05:00
ImportBatch.pm staging import - enhance record overlay behavior 2008-04-30 21:58:46 -05:00
Installer.pm test suite: allow skipping of expensive tests 2008-05-19 13:25:57 -05:00
Items.pm bug 2295 [3/4]: moving C4::Items tests into t/lib/KohaTest 2008-07-07 16:32:30 -05:00
Koha.pm bug: 2272 - remove warning from C4::Koha::getitemtypeimagedir 2008-06-25 11:47:28 -05:00
Labels.pm bug 2295 [4/4]: moving C4::Labels tests into t/lib/KohaTest 2008-07-07 16:32:31 -05:00
Letters.pm Bug 2176 (3/5): adding methods to manage message_queue, new advance_notices.pl, new C4::SMS module 2008-06-20 13:04:52 -05:00
Log.pm bug 2088: test suite refactoring to deal with t/override_context_prefs.pm 2008-05-11 06:48:40 -05:00
Members.pm bug 2088: test suite refactoring to deal with t/override_context_prefs.pm 2008-05-11 06:48:40 -05:00
NewsChannels.pm bug 2088: test suite refactoring to deal with t/override_context_prefs.pm 2008-05-11 06:48:40 -05:00
Overdues.pm bug 2088: test suite refactoring to deal with t/override_context_prefs.pm 2008-05-11 06:48:40 -05:00
Print.pm bug 2088: test suite refactoring to deal with t/override_context_prefs.pm 2008-05-11 06:48:40 -05:00
Reserves.pm bug 2088: test suite refactoring to deal with t/override_context_prefs.pm 2008-05-11 06:48:40 -05:00
SMS.pm Bug 2176 (3/5): adding methods to manage message_queue, new advance_notices.pl, new C4::SMS module 2008-06-20 13:04:52 -05:00
Scripts.pm bug 2087: test cases for misc/cronjobs/longoverdue.pl 2008-05-11 06:43:35 -05:00
Search.pm adding database-dependent test libs. 2008-04-21 11:26:28 -05:00
Serials.pm bug 2088: test suite refactoring to deal with t/override_context_prefs.pm 2008-05-11 06:48:40 -05:00
Suggestions.pm bug 2088: test suite refactoring to deal with t/override_context_prefs.pm 2008-05-11 06:48:40 -05:00
Z3950.pm bug 2088: test suite refactoring to deal with t/override_context_prefs.pm 2008-05-11 06:48:40 -05:00