Bug 21832: add unit test
Adds a check that is_expired exists in service GetPatronInfo. Test plan : Run : prove t/db_dependent/ILSDI_Services.t Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Amended patch: remove ref to bug number, we have git for that Signed-off-by: Nick Clemens <nick@bywatersolutions.com> (cherry picked from commit20ce110f5c) Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> (cherry picked from commit4e305856af) Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> (cherry picked from commit7037e350d6) Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
d059090472
commit
7ac6f7034b
|
|
@ -103,7 +103,7 @@ subtest 'AuthenticatePatron test' => sub {
|
|||
|
||||
subtest 'GetPatronInfo/GetBorrowerAttributes test for extended patron attributes' => sub {
|
||||
|
||||
plan tests => 2;
|
||||
plan tests => 3;
|
||||
|
||||
$schema->storage->txn_begin;
|
||||
|
||||
|
|
@ -228,6 +228,8 @@ subtest 'GetPatronInfo/GetBorrowerAttributes test for extended patron attributes
|
|||
# Check results:
|
||||
is_deeply( $reply->{'attributes'}, [ $cmp ], 'Test GetPatronInfo - show_attributes parameter' );
|
||||
|
||||
ok( exists $reply->{is_expired}, 'There should be the is_expired information');
|
||||
|
||||
# Cleanup
|
||||
$schema->storage->txn_rollback;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue