From a388142e1d6f7e16c74082f4b81645988c136d55 Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Tue, 12 Feb 2019 15:52:22 +0100 Subject: [PATCH] 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 --- t/db_dependent/ILSDI_Services.t | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/t/db_dependent/ILSDI_Services.t b/t/db_dependent/ILSDI_Services.t index 4ec7f81c4b..e2bc779970 100644 --- a/t/db_dependent/ILSDI_Services.t +++ b/t/db_dependent/ILSDI_Services.t @@ -103,7 +103,7 @@ subtest 'AuthenticatePatron test' => sub { subtest 'GetPatronInfo/GetBorrowerAttributes test for extended patron attributes' => sub { - plan tests => 4; + plan tests => 5; $schema->storage->txn_begin; @@ -237,6 +237,9 @@ subtest 'GetPatronInfo/GetBorrowerAttributes test for extended patron attributes # Check results: is_deeply( $reply->{'attributes'}, [ $cmp ], 'Test GetPatronInfo - show_attributes parameter' ); + # BZ 21832 check is_expired exists + ok( exists $reply->{is_expired}, 'There should be the is_expired information'); + # Cleanup $schema->storage->txn_rollback; }; -- 2.17.1