Koha-clms/Koha
Tomas Cohen Arazi 99410d7ce4 Bug 9209 - Mocked Koha::Calendar tests
Using specific method for populating the internal data structures from Koha::Calendar
has yielded to the non-detection of several bugs. There are also several tests that where
db_dependent which is not always desirable.

I propose the use of DBD::Mock (::Session) for using the actual code used by Koha in production
for testing, mocking the DB queries itselves.

I also took the time to repeat several tests in different syspref configurations (they applied
only to daysMode=Calendar, and now cover all confs).

Notes:
- I used DBD:Mock 1.45 as previous version (1.43, from 12.04) was broken
- Some tests revealed a bug on days_between as I see it... reporting as Bug #9211

Sponsored-by: Universidad Nacional de Córdoba
Signed-off-by: Elliott Davis <elliott@bywatersolutions.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
2012-12-28 20:15:35 -05:00
..
Borrower Bug 7067 QA Followup 2012-12-14 08:09:00 -05:00
Cache Bug 8092 follow-up: Fix perlcritic violations 2012-06-14 17:56:56 +02:00
Filter/MARC Bug 7417 follow-up: fix a perlcritic violation 2012-09-14 17:22:11 +02:00
Indexer Bug 7818: utility to generate DOM indexing configs 2012-06-09 11:44:00 +02:00
RecordProcessor Bug 7417: Include see from references in bibliographic searches 2012-09-13 14:19:28 +02:00
SearchEngine Bug 7417: Include see from references in bibliographic searches 2012-09-13 14:19:28 +02:00
SuggestionEngine Merge remote-tracking branch 'origin/new/bug_8209' 2012-10-01 16:39:52 +02:00
Template/Plugin Bug 4173: Followup: Document KohaAuthorisedValues plugin 2012-09-14 16:37:21 +02:00
Authority.pm Bug 7417 follow-up: fix a perlcritic violation 2012-09-14 17:22:11 +02:00
Cache.pm Revert "Bug 8089: Use Koha::Cache for all caching" 2012-09-12 14:12:41 +02:00
Calendar.pm Bug 9209 - Mocked Koha::Calendar tests 2012-12-28 20:15:35 -05:00
DateUtils.pm Bug 8652: Followup: add a default value for date_from 2012-10-09 11:27:42 +02:00
RecordProcessor.pm Bug 7417: Include see from references in bibliographic searches 2012-09-13 14:19:28 +02:00
SearchEngine.pm Bug 8233 : SearchEngine: Add a Koha::SearchEngine module 2012-07-06 16:51:58 +02:00
SuggestionEngine.pm Bug 8726: ExplodedTerms suggestion plugin (functionality) 2012-09-28 17:08:21 +02:00