]> git.koha-community.org Git - koha.git/commit
Bug 27333: Throw the right exceptions
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 4 Jan 2021 14:10:12 +0000 (11:10 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 27 Jan 2021 09:45:54 +0000 (10:45 +0100)
commitc5f3fdcc15bc5d1a013321944c90ce49f5c58e6c
treeaa605eadfcb1e990bbdcada4c4af3b96297f7001
parent3ece5964861577185d96e2834f04f42bcc68d40e
Bug 27333: Throw the right exceptions

If parameters are missing, we need to throw
Koha::Exceptions::MissingParameter exceptions.

To test:
1. Apply the regression tests patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/Koha/Club/Hold.t
=> FAIL: Tests fail because the method doesn't throw the right
exceptions
3. Apply this patch
4. Repeat 2
=> SUCCESS: Tests pass!
5. Sign off :-D

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/Club/Hold.pm