[Koha-bugs] [Bug 28565] Adding a new syspref for sharing through HEA should be simpler

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jun 22 16:52:29 CEST 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28565

--- Comment #10 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 122289
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=122289&action=edit
Bug 28565: Refactor tests

Tests were too complex with no gain. They even deleted the whole DB to
run (inside a transaction). I refactored to test the same thing, and
make it rely (mostly) on existing data.

_count behavior is tested implicitly by comparing with Koha::*->count.

To test:
1. Run:
   $ kshell
  k$ prove t/db_dependent/UsageStats.t
=> SUCCESS: Tests pass
2. Apply this patch
3. Repeat 1
=> SUCCESS: Tests still pass
4. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list