[Koha-bugs] [Bug 15151] t/Circulation_barcodedecode.t fails if no DB present
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Nov 6 15:40:51 CET 2015
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15151
--- Comment #3 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 44570
-->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=44570&action=edit
Bug 15151: (counter patch) Avoid DB access to load C4::Members
In order to avoid loading Koha::NorwegianPatronDB a DB query was
used. Instead, a require should be used. This causes non-db_dependent
tests that load C4::Members to fail.
To test:
- Shut mysql down
$ sudo service mysql stop
- Run the tests:
prove t/Circulation_barcodedecode.t
=> FAIL: DB connection is expected, tests fail
- Apply the patch
- Run the tests:
prove t/Circulation_barcodedecode.t
=> SUCCESS: Tests pass
- Sign off .-D
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list