[Koha-bugs] [Bug 10644] C4::ClassSource.pm needs unit tests
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Jul 31 23:29:31 CEST 2013
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10644
Katrin Fischer <katrin.fischer at bsz-bw.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #20027|0 |1
is obsolete| |
--- Comment #5 from Katrin Fischer <katrin.fischer at bsz-bw.de> ---
Created attachment 20028
-->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=20028&action=edit
[PASSED QA] 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>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83 at web.de>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list