From: Bill Erickson <berickxx@gmail.com>
Date: Mon, 30 Jul 2018 14:23:37 +0000 (-0400)
Subject: LP#1766716 Closed dates Perl live test API repair
X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=26581c762f386104c5002b68b9dd99fb0a68116e;p=contrib%2FConifer.git

LP#1766716 Closed dates Perl live test API repair

Update the org unit close date Perl live test to match API changes for
emergecy org unit close dates handling.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
---

diff --git a/Open-ILS/src/perlmods/live_t/04-overdue_with_closed_dates.t b/Open-ILS/src/perlmods/live_t/04-overdue_with_closed_dates.t
index 739fe26302..1672921ae7 100644
--- a/Open-ILS/src/perlmods/live_t/04-overdue_with_closed_dates.t
+++ b/Open-ILS/src/perlmods/live_t/04-overdue_with_closed_dates.t
@@ -41,10 +41,13 @@ sub create_closed_date {
 sub update_closed_date {
     my $aoucd = shift;
     $aoucd->reason($aoucd->reason . ' modified');
-    return $apputils->simplereq(
+
+    my $cd = $apputils->simplereq(
         'open-ils.actor',
         'open-ils.actor.org_unit.closed.update',
         $script->authtoken, $aoucd);
+
+    return ref $cd eq 'Fieldmapper::actor::org_unit::closed_date';
 }
 
 sub delete_closed_date {