|
Lines 34-40
use Koha::AuthUtils qw(hash_password);
Link Here
|
| 34 |
use Koha::DateUtils; |
34 |
use Koha::DateUtils; |
| 35 |
use Koha::Items; |
35 |
use Koha::Items; |
| 36 |
use Koha::Checkouts; |
36 |
use Koha::Checkouts; |
| 37 |
use Koha::Old::Checkouts; |
37 |
use Koha::OldIssues; |
| 38 |
use Koha::Patrons; |
38 |
use Koha::Patrons; |
| 39 |
|
39 |
|
| 40 |
use C4::SIP::ILS; |
40 |
use C4::SIP::ILS; |
|
Lines 309-315
sub test_checkin_v2 {
Link Here
|
| 309 |
t::lib::Mocks::mock_preference( 'AllowReturnToBranch', 'anywhere' ); |
309 |
t::lib::Mocks::mock_preference( 'AllowReturnToBranch', 'anywhere' ); |
| 310 |
|
310 |
|
| 311 |
# Data corrupted: add same issue_id to old_issues |
311 |
# Data corrupted: add same issue_id to old_issues |
| 312 |
Koha::Old::Checkout->new({ issue_id => $issue->issue_id })->store; |
312 |
Koha::OldIssue->new({ issue_id => $issue->issue_id })->store; |
| 313 |
undef $response; |
313 |
undef $response; |
| 314 |
$msg = C4::SIP::Sip::MsgType->new( $siprequest, 0 ); |
314 |
$msg = C4::SIP::Sip::MsgType->new( $siprequest, 0 ); |
| 315 |
warnings_like { $msg->handle_checkin( $server ); } |
315 |
warnings_like { $msg->handle_checkin( $server ); } |
|
Lines 320-326
sub test_checkin_v2 {
Link Here
|
| 320 |
check_field( $respcode, $response, FID_SCREEN_MSG, 'Checkin failed: data problem', 'Check screen msg' ); |
320 |
check_field( $respcode, $response, FID_SCREEN_MSG, 'Checkin failed: data problem', 'Check screen msg' ); |
| 321 |
|
321 |
|
| 322 |
# Finally checkin without problems (remove duplicate id) |
322 |
# Finally checkin without problems (remove duplicate id) |
| 323 |
Koha::Old::Checkouts->search({ issue_id => $issue->issue_id })->delete; |
323 |
Koha::OldIssues->search({ issue_id => $issue->issue_id })->delete; |
| 324 |
undef $response; |
324 |
undef $response; |
| 325 |
$msg = C4::SIP::Sip::MsgType->new( $siprequest, 0 ); |
325 |
$msg = C4::SIP::Sip::MsgType->new( $siprequest, 0 ); |
| 326 |
$msg->handle_checkin( $server ); |
326 |
$msg->handle_checkin( $server ); |
| 327 |
- |
|
|