[Koha-bugs] [Bug 23971] Add logging for basket related actions

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Oct 23 20:36:00 CEST 2020


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

--- Comment #72 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 112304
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=112304&action=edit
Bug 23971: (follow-up) Fix tests

Following a discussion with Tomás on Slack, this commit implements the
following suggestions:

- Switch from ->find to ->search in tests. ->find is only ever going to return
0
or 1 rows, which doesn't help us if there is breakage which results in
more than 1 row being returned, the test would fail due to ->find not
expecting more than 1 row, but we should be testing for it. So switching
to ->search returns all matching rows.
- Moved tests into their own subtest, they had the potential to pollute
surrounding tests
- Remove all action logs before each test, this ensures we're only
testing the result of the current test

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