[Koha-bugs] [Bug 10653] UT : C4::RotatingCollections.pm needs unit tests.

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Aug 6 07:13:43 CEST 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10653

--- Comment #7 from Srdjan Jankovic <srdjan at catalyst.net.nz> ---
That's because you have DELETE FROM branches.
You can try placing DELETE FROM borrowers before branches, but then you'll have
problems with issues. And if you add DELETE FROM issues it will take forever to
do that.
I think that deleting from base tables is a bad idea. Unlike deleting from
specific purpose tables, eg issuingrules, which is ok.
I can see that test have progressed in the past couple of years, so this may
not be relevant, but what I used to do is either:
a) create my own data
b) use random existing data, ie SELECT * FROM branches WHERE some_condition
ORDER BY random, and take the top one; some_condition is eg has borrowers etc.

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


More information about the Koha-bugs mailing list