[Koha-bugs] [Bug 15391] Some tests in HoldsQueue.t should not pass

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jan 15 20:35:23 CET 2016


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

--- Comment #3 from Kyle M Hall <kyle at bywatersolutions.com> ---
The "itemtype" from line 64 is being inserted into a biblioitems row at line ,
which does not have a foreign key to itemtypes, so it succeeds. The itemtype is
re-used at line 98 for an item. It appears the test actually requires the item
to be *for* loan, rather than not for loan.

Since the itemtype doesn't really exists, is seems to fail as a for loan
itemtype, even though it seems like we should get an execution error instead.

Then, at line 181 the itemtype is replace with an arbitrary itemtype selected
from the database, which is probably just a lucky grab since the default data
would give a for loan itemtype first.

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


More information about the Koha-bugs mailing list