]> git.koha-community.org Git - koha.git/commit
Bug 15151: Avoid DB access to load C4::Members
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 6 Nov 2015 14:21:56 +0000 (11:21 -0300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Sun, 8 Nov 2015 16:10:13 +0000 (13:10 -0300)
commitf25fe6ddb4a340f12613784dc841ab5bfd672d6b
tree6b1ffb55104708717c4b975800373a3cd33a0ab8
parent7ce858491b86b6fe4f85c0cb5e50f66288c474b0
Bug 15151: 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

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
C4/Members.pm
t/Circulation_barcodedecode.t