[Koha-bugs] [Bug 10644] C4::ClassSource.pm needs unit tests
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Jul 26 14:43:38 CEST 2013
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10644
--- Comment #1 from kenza <kenza.zaki at biblibre.com> ---
Created attachment 19961
-->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=19961&action=edit
Bug 10644: ClassSource.pm needs unit tests
The tests are wrap 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
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list