View | Details | Raw Unified | Return to bug 18977
Collapse All | Expand All

(-)a/t/db_dependent/SIP/Message.t (-5 / +2 lines)
Lines 54-68 my $mockILS = Test::MockObject->new; Link Here
54
$mockILS->mock( 'check_inst_id', sub {} );
54
$mockILS->mock( 'check_inst_id', sub {} );
55
$mockILS->mock( 'institution_id', sub { $branchcode; } );
55
$mockILS->mock( 'institution_id', sub { $branchcode; } );
56
$mockILS->mock( 'find_patron', sub { $findpatron; } );
56
$mockILS->mock( 'find_patron', sub { $findpatron; } );
57
$branch = $builder->build({
58
    source => 'Branch',
59
});
60
$branchcode = $branch->{branchcode};
61
57
62
# START testing
58
# START testing
63
subtest 'Testing Patron Status Request V2' => sub {
59
subtest 'Testing Patron Status Request V2' => sub {
64
    $schema->storage->txn_begin;
60
    $schema->storage->txn_begin;
65
    plan tests => 13;
61
    plan tests => 13;
62
    $branchcode = $builder->build({ source => 'Branch' })->{branchcode};
66
    $C4::SIP::Sip::protocol_version = 2;
63
    $C4::SIP::Sip::protocol_version = 2;
67
    test_request_patron_status_v2();
64
    test_request_patron_status_v2();
68
    $schema->storage->txn_rollback;
65
    $schema->storage->txn_rollback;
Lines 71-76 subtest 'Testing Patron Status Request V2' => sub { Link Here
71
subtest 'Testing Patron Info Request V2' => sub {
68
subtest 'Testing Patron Info Request V2' => sub {
72
    $schema->storage->txn_begin;
69
    $schema->storage->txn_begin;
73
    plan tests => 18;
70
    plan tests => 18;
71
    $branchcode = $builder->build({ source => 'Branch' })->{branchcode};
74
    $C4::SIP::Sip::protocol_version = 2;
72
    $C4::SIP::Sip::protocol_version = 2;
75
    test_request_patron_info_v2();
73
    test_request_patron_info_v2();
76
    $schema->storage->txn_rollback;
74
    $schema->storage->txn_rollback;
77
- 

Return to bug 18977