From a8d9dbdfd088b1eacc65e76eb1777fe89f9b40d7 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 11 Sep 2017 16:08:41 -0300 Subject: [PATCH] Bug 18996: [16.11.x] use Koha::OldIssues instead of Koha::Old::Checkouts --- t/db_dependent/SIP/Message.t | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/t/db_dependent/SIP/Message.t b/t/db_dependent/SIP/Message.t index 6c44db29a7..84bc7cc330 100755 --- a/t/db_dependent/SIP/Message.t +++ b/t/db_dependent/SIP/Message.t @@ -34,7 +34,7 @@ use Koha::AuthUtils qw(hash_password); use Koha::DateUtils; use Koha::Items; use Koha::Checkouts; -use Koha::Old::Checkouts; +use Koha::OldIssues; use Koha::Patrons; use C4::SIP::ILS; @@ -309,7 +309,7 @@ sub test_checkin_v2 { t::lib::Mocks::mock_preference( 'AllowReturnToBranch', 'anywhere' ); # Data corrupted: add same issue_id to old_issues - Koha::Old::Checkout->new({ issue_id => $issue->issue_id })->store; + Koha::OldIssue->new({ issue_id => $issue->issue_id })->store; undef $response; $msg = C4::SIP::Sip::MsgType->new( $siprequest, 0 ); warnings_like { $msg->handle_checkin( $server ); } @@ -320,7 +320,7 @@ sub test_checkin_v2 { check_field( $respcode, $response, FID_SCREEN_MSG, 'Checkin failed: data problem', 'Check screen msg' ); # Finally checkin without problems (remove duplicate id) - Koha::Old::Checkouts->search({ issue_id => $issue->issue_id })->delete; + Koha::OldIssues->search({ issue_id => $issue->issue_id })->delete; undef $response; $msg = C4::SIP::Sip::MsgType->new( $siprequest, 0 ); $msg->handle_checkin( $server ); -- 2.11.0