]> 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)
committerFrédéric Demians <f.demians@tamil.fr>
Sun, 29 Nov 2015 20:37:02 +0000 (21:37 +0100)
commitbc668dccd3af3fba14e04a764499b0d762c63455
treed5b385440a6d05fd14763838ceaf94f9f590c971
parent49d2b2c84dbd85da2a2495ac3b81e450f4e522b4
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>
cherry-picked from f25fe6ddb4a340f12613784dc841ab5bfd672d6b
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
C4/Members.pm
t/Circulation_barcodedecode.t