]> git.koha-community.org Git - koha.git/commit
Bug 27857: Regression tests
authorTomas Cohen Arazi <tomascohen@theke.io>
Thu, 4 Mar 2021 12:34:12 +0000 (09:34 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 9 Apr 2021 13:43:30 +0000 (15:43 +0200)
commit9e7903dfd6714b22c670acdadc4a030f3e6c2ceb
tree7d68713bdd7259b5d83a32673bb8647b2881f7c4
parent1746f286704dbfa97b8bee8dcf94353c08c70b04
Bug 27857: Regression tests

This patch adds regression tests for the changed behavior.
Koha::Patron->extended_attributes will now throw exceptions and rollback
on invalid attributes.

The existing tests are amended so they don't try to deal with skipping
bad attributes.

Specific subtests are added for error situations.

To test:
1. Apply this patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/Koha/Patron.t
=> FAIL: Tests fail because the new behavior is not implemented.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
t/db_dependent/Koha/Patron.t