]> git.koha-community.org Git - koha.git/commit
Bug 27858: Unit tests
authorTomas Cohen Arazi <tomascohen@theke.io>
Thu, 4 Mar 2021 11:23:09 +0000 (08:23 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 9 Apr 2021 13:43:26 +0000 (15:43 +0200)
commit032c66bfc96a3f9381e2734a63d0664f62313dba
tree1d0806c09b44f4f92dd77d2a4e5ffedb2deca04e
parente2fe2d217fdb3ab23fbcd77672205753dd3cda73
Bug 27858: Unit tests

This patch introduces unit tests for the new exception to be thrown.
It generates a new extended attribute type, keeps the randomly generated
'code' and deletes the object. This way we can be sure the code doesn't
exist on the DB. It then tries to generate an attribute of that type, to
force the exception to be thrown.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Joonas Kylmälä <joonas.kylmala@helsinki.fi>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
t/db_dependent/Koha/Patron/Attribute.t