| Lines 69-75
          subtest 'Testing Patron Info Request V2' => sub {
      
      
        Link Here | 
        
          | 69 | subtest 'Checkin V2' => sub { | 69 | subtest 'Checkin V2' => sub { | 
        
          | 70 |     my $schema = Koha::Database->new->schema; | 70 |     my $schema = Koha::Database->new->schema; | 
        
          | 71 |     $schema->storage->txn_begin; | 71 |     $schema->storage->txn_begin; | 
          
            
              | 72 |     plan tests => 33; | 72 |     plan tests => 35; | 
        
          | 73 |     $C4::SIP::Sip::protocol_version = 2; | 73 |     $C4::SIP::Sip::protocol_version = 2; | 
        
          | 74 |     test_checkin_v2(); | 74 |     test_checkin_v2(); | 
        
          | 75 |     $schema->storage->txn_rollback; | 75 |     $schema->storage->txn_rollback; | 
  
    | Lines 657-662
          sub test_checkin_v2 {
      
      
        Link Here | 
        
          | 657 |         'Issue record is gone now' ); | 657 |         'Issue record is gone now' ); | 
        
          | 658 |  | 658 |  | 
        
          | 659 |     # Test account option no_holds_check that prevents items on hold from being checked in via SIP | 659 |     # Test account option no_holds_check that prevents items on hold from being checked in via SIP | 
            
              |  |  | 660 |     $issue = Koha::Checkout->new({ branchcode => $branchcode, borrowernumber => $patron1->{borrowernumber}, itemnumber => $item_object->itemnumber })->store; | 
            
              | 661 |     is( Koha::Checkouts->search({ itemnumber => $item_object->id })->count, 1, "Item is checked out"); | 
        
          | 660 |     Koha::Old::Checkouts->search({ issue_id => $issue->issue_id })->delete; | 662 |     Koha::Old::Checkouts->search({ issue_id => $issue->issue_id })->delete; | 
        
          | 661 |     $server->{account}->{holds_block_checkin} = 1; | 663 |     $server->{account}->{holds_block_checkin} = 1; | 
        
          | 662 |     my $reserve_id = AddReserve({ | 664 |     my $reserve_id = AddReserve({ | 
  
    | Lines 673-678
          sub test_checkin_v2 {
      
      
        Link Here | 
        
          | 673 |     is( substr($response,2,1), '0', 'OK flag is false when we check in an item on hold and we do not allow it' ); | 675 |     is( substr($response,2,1), '0', 'OK flag is false when we check in an item on hold and we do not allow it' ); | 
        
          | 674 |     is( substr($response,5,1), 'Y', 'Alert flag is set' ); | 676 |     is( substr($response,5,1), 'Y', 'Alert flag is set' ); | 
        
          | 675 |     check_field( $respcode, $response, FID_SCREEN_MSG, 'Item is on hold, please return to circulation desk', 'Screen message is correct' ); | 677 |     check_field( $respcode, $response, FID_SCREEN_MSG, 'Item is on hold, please return to circulation desk', 'Screen message is correct' ); | 
            
              |  |  | 678 |     is( Koha::Checkouts->search({ itemnumber => $item_object->id })->count, 1, "Item was not checked in"); | 
        
          | 676 |     $hold->delete(); | 679 |     $hold->delete(); | 
        
          | 677 |     $server->{account}->{holds_block_checkin} = 0; | 680 |     $server->{account}->{holds_block_checkin} = 0; | 
        
          | 678 |  | 681 |  | 
            
              | 679 | -  |  |  |