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

--- Comment #14 from Kyle M Hall (khall) <[email protected]> ---
Created attachment 198621
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=198621&action=edit
Bug 42391: (follow-up) Fix Objects.t case 3 to test FK deletion properly

The 'Delete a patron that cannot be deleted' test (case 3) was using a
stale $r_us object from case 2 (not in storage), so it was not actually
testing FK constraint deletion. The assertion on DBIx::Class::Exception
passed by accident.

This follow-up:
- Fetches a fresh Koha::Patron object for case 3
- Clears $e_us/$e_them before the new test
- Asserts Koha::Exceptions::Object::FKConstraintDeletion, which is what
  exception_action now produces for FK deletion errors

Signed-off-by: David Nind <[email protected]>

Signed-off-by: Kyle M Hall <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to