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

(-)a/t/db_dependent/SIP/Message.t (-1 / +27 lines)
Lines 1369-1374 sub test_checkin_v2 { Link Here
1369
    my $card1       = $patron1->{cardnumber};
1369
    my $card1       = $patron1->{cardnumber};
1370
    my $sip_patron1 = C4::SIP::ILS::Patron->new($card1);
1370
    my $sip_patron1 = C4::SIP::ILS::Patron->new($card1);
1371
    $findpatron = $sip_patron1;
1371
    $findpatron = $sip_patron1;
1372
1373
    # Create itemtype with sip_magnetic = 0 to ensure alert flag tests work correctly
1374
    my $itemtype_obj = $builder->build_object(
1375
        {
1376
            class => 'Koha::ItemTypes',
1377
            value => { sip_magnetic => 0 },
1378
        }
1379
    );
1372
    my $item_object = $builder->build_sample_item(
1380
    my $item_object = $builder->build_sample_item(
1373
        {
1381
        {
1374
            damaged       => 0,
1382
            damaged       => 0,
Lines 1377-1382 sub test_checkin_v2 { Link Here
1377
            restricted    => 0,
1385
            restricted    => 0,
1378
            homebranch    => $branchcode,
1386
            homebranch    => $branchcode,
1379
            holdingbranch => $branchcode,
1387
            holdingbranch => $branchcode,
1388
            itype         => $itemtype_obj->itemtype,
1380
        }
1389
        }
1381
    );
1390
    );
1382
1391
Lines 1663-1668 sub test_checkout_desensitize { Link Here
1663
    my $sip_patron1     = C4::SIP::ILS::Patron->new($card1);
1672
    my $sip_patron1     = C4::SIP::ILS::Patron->new($card1);
1664
    my $patron_category = $sip_patron1->ptype();
1673
    my $patron_category = $sip_patron1->ptype();
1665
    $findpatron = $sip_patron1;
1674
    $findpatron = $sip_patron1;
1675
1676
    # Create itemtype with sip_magnetic = 0 to ensure desensitize tests work correctly
1677
    my $itemtype_obj = $builder->build_object(
1678
        {
1679
            class => 'Koha::ItemTypes',
1680
            value => { sip_magnetic => 0 },
1681
        }
1682
    );
1666
    my $item_object = $builder->build_sample_item(
1683
    my $item_object = $builder->build_sample_item(
1667
        {
1684
        {
1668
            damaged       => 0,
1685
            damaged       => 0,
Lines 1671-1676 sub test_checkout_desensitize { Link Here
1671
            restricted    => 0,
1688
            restricted    => 0,
1672
            homebranch    => $branchcode,
1689
            homebranch    => $branchcode,
1673
            holdingbranch => $branchcode,
1690
            holdingbranch => $branchcode,
1691
            itype         => $itemtype_obj->itemtype,
1674
        }
1692
        }
1675
    );
1693
    );
1676
    my $itemtype = $item_object->effective_itemtype;
1694
    my $itemtype = $item_object->effective_itemtype;
Lines 1857-1862 sub test_renew_desensitize { Link Here
1857
    my $sip_patron1     = C4::SIP::ILS::Patron->new($card1);
1875
    my $sip_patron1     = C4::SIP::ILS::Patron->new($card1);
1858
    my $patron_category = $sip_patron1->ptype();
1876
    my $patron_category = $sip_patron1->ptype();
1859
    $findpatron = $sip_patron1;
1877
    $findpatron = $sip_patron1;
1878
1879
    # Create itemtype with sip_magnetic = 0 to ensure desensitize tests work correctly
1880
    my $itemtype_obj = $builder->build_object(
1881
        {
1882
            class => 'Koha::ItemTypes',
1883
            value => { sip_magnetic => 0 },
1884
        }
1885
    );
1860
    my $item_object = $builder->build_sample_item(
1886
    my $item_object = $builder->build_sample_item(
1861
        {
1887
        {
1862
            damaged       => 0,
1888
            damaged       => 0,
Lines 1865-1870 sub test_renew_desensitize { Link Here
1865
            restricted    => 0,
1891
            restricted    => 0,
1866
            homebranch    => $branchcode,
1892
            homebranch    => $branchcode,
1867
            holdingbranch => $branchcode,
1893
            holdingbranch => $branchcode,
1894
            itype         => $itemtype_obj->itemtype,
1868
        }
1895
        }
1869
    );
1896
    );
1870
    my $itemtype = $item_object->effective_itemtype;
1897
    my $itemtype = $item_object->effective_itemtype;
1871
- 

Return to bug 41649