[Koha-bugs] [Bug 11891] Make Koha::Schema use C4::Context->dbh
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Jun 19 01:16:57 CEST 2014
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11891
--- Comment #8 from Galen Charlton <gmcharlt at gmail.com> ---
Created attachment 28963
-->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=28963&action=edit
Bug 11891 - Make Koha::Schema use C4::Context->dbh
Right now there is no connection between the database handles used by
C4::Context::dbh and Koha::Datbase/Schema. This makes it impossible to
use transactions in unit tests to temporarily modify the database to
test subroutines that take advantage of Koha::Database. This patch fixes
that issue.
Test Plan:
1) Apply this patch
2) prove -v t/db_dependent/ILSDI_Services.t and
prove -v t/db_dependent/Items.t and
prove -v t/db_dependent/Circulation_issue.t should
all start passing
Signed-off-by: Galen Charlton <gmc at esilibrary.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list