Koha/t/db_dependent
Kenza Zaki 5de06b87e2 Bug 10644: add unit tests for ClassSource.pm
The tests are wrapped in a database transaction.

To test:
prove t/db_dependent/ClassSource.t
t/db_dependent/ClassSource.t .. 1/24 prepare_cached(SELECT * FROM `class_sort_rules` WHERE `class_sort_rule` = ?) statement handle DBI::st=HASH(0x92dbedc) still Active at C4/ClassSource.pm line 249
prepare_cached(SELECT * FROM `class_sources` WHERE cn_source = ?) statement handle DBI::st=HASH(0x926876c) still Active at C4/ClassSource.pm line 137
attempting to use non-existent class sorting routine routine1
prepare_cached(SELECT * FROM `class_sort_rules` WHERE `class_sort_rule` = ?) statement handle DBI::st=HASH(0x92dbedc) still Active at C4/ClassSource.pm line 249
prepare_cached(SELECT * FROM `class_sources` WHERE cn_source = ?) statement handle DBI::st=HASH(0x926876c) still Active at C4/ClassSource.pm line 137
t/db_dependent/ClassSource.t .. ok
All tests successful.
Files=1, Tests=24,  0 wallclock secs ( 0.02 usr  0.00 sys +  0.12 cusr  0.01 csys =  0.15 CPU)
Result: PASS

Signed-off-by: Srdjan <srdjan@catalyst.net.nz>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
2013-08-01 15:09:31 +00:00
..
Acquisition Bug 10275: Use a transaction for OrderFromSubscription.t 2013-07-16 14:20:38 +00:00
data/zebraexport
Labels
LDAP
lib Bug 9987: Remove DB field aqorders.biblioitemnunmber 2013-07-02 15:18:50 -07:00
Record
Reports
www Bug 8300: Add mechanized unit test for batch import 2013-05-01 07:57:11 -04:00
00-strict.t
Accounts.t
Acquisition.t bug 10556: regression test for setting deliverytime when adding vendor 2013-07-16 14:55:09 +00:00
Amazon.t
Auth.t
Auth_ParseSearchHistoryCookie.t move Auth_ParseSearchHistoryCookie.t to db_dependent directory 2013-07-28 19:42:51 +00:00
Auth_with_cas.t
AuthoritiesMarc.t
BackgroundJob.t
Barcodes.t
Biblio.t
Branch.t Bug 10515: add regression tests 2013-07-17 17:27:36 +00:00
Budgets.t Bug 9937: Add new unit tests for new routines (introduced by bug 5343) 2013-03-30 17:05:15 -04:00
check_sysprefs.t
Circulation.t Bug 8220 - QA Followup - Unit Test 2013-03-21 20:35:37 -04:00
Circulation_issuingrules.t Bug 8365: Add unit tests and fix QA issues 2013-03-22 07:57:02 -04:00
ClassSource.t Bug 10644: add unit tests for ClassSource.pm 2013-08-01 15:09:31 +00:00
Context.t
CourseReserves.t Bug 10332: further improvements to course reserves tests 2013-06-18 16:40:43 -07:00
Csv.t
database_dependent.pl
External_BakerTaylor.t
Heading_MARC21.t
Holds.t Bug 9394: (follow-up) modernize test cases 2013-07-24 05:04:56 +00:00
HoldsQueue.t Bug 10336: HoldsQueue.t needs to create its own data 2013-06-27 08:23:24 -07:00
Holidays.t
Items.t
KitchenSinkPlugin.kpz Bug 7804 - Add Koha Plugin System - QA Followup 3 - Additional Unit Tests 2013-03-20 14:50:38 -04:00
Koha.t Bug 9117: Add imageurl to the list of parameters of AddAuthorisedValue 2013-03-21 18:54:10 -04:00
Koha_Authority.t
Koha_borrower_modifications.t
Koha_template_plugin_KohaBranchName.t Bug 10494: test cases for the KohaBranchName plugin 2013-06-30 18:44:57 -07:00
Koha_template_plugin_KohaDates.t
Linker_FirstMatch.t
Log.t
Members.t Bug 10080 - Change system pref IndependantBranches to IndependentBranches 2013-05-22 07:58:23 -07:00
Plugins.t Bug 9909: Don't install KitchenSink plugin if plugin dir isn't writable 2013-03-22 21:52:41 -04:00
Ratings.t
Record.t
RecordProcessor_EmbedSeeFromHeadings.t
Reports.t
Reports_Guided.t
ReportsGuided.t Bug 9659 follow-up: correct syntax for older Perl 2013-04-26 21:32:49 -04:00
Reserves.t Bug 10289: (follow-up) don't set cardnumber for test patron 2013-07-08 14:29:32 +00:00
rollingloans.t
Search.t
Serials.t
Serials_2.t
Service.t
SIP_ILS.t
SQLHelper.t
SuggestionEngine_ExplodedTerms.t
Suggestions.t
sysprefs.t
Tags.t
UploadedFile.t
VirtualShelves.t Bug 10499: VirtualShelves.t - wrap tests in a database transaction 2013-07-16 14:17:27 +00:00
VirtualShelves_Page.t
XISBN.t Bug 9728: XISBN unit test update 2013-06-18 09:46:37 -07:00
zebra_config.pl