[Koha-bugs] [Bug 10644] C4::ClassSource.pm needs unit tests
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Jul 29 05:59:16 CEST 2013
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10644
Srdjan Jankovic <srdjan at catalyst.net.nz> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #19961|0 |1
is obsolete| |
--- Comment #2 from Srdjan Jankovic <srdjan at catalyst.net.nz> ---
Created attachment 19973
-->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=19973&action=edit
[SIGNED-OFF] 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
Signed-off-by: Srdjan <srdjan at catalyst.net.nz>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list