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

(-)a/t/db_dependent/Circulation/TooMany.t (-9 / +12 lines)
Lines 163-178 subtest '1 Issuingrule exist 0 0: no issue allowed' => sub { Link Here
163
163
164
subtest '1 Issuingrule exist with onsiteissueqty=unlimited' => sub {
164
subtest '1 Issuingrule exist with onsiteissueqty=unlimited' => sub {
165
    plan tests => 4;
165
    plan tests => 4;
166
    my $issuingrule = $builder->build({
166
167
        source => 'Issuingrule',
167
    Koha::CirculationRules->set_rules(
168
        value => {
168
        {
169
            branchcode         => $branch->{branchcode},
169
            branchcode   => $branch->{branchcode},
170
            categorycode       => $category->{categorycode},
170
            categorycode => $category->{categorycode},
171
            itemtype           => '*',
171
            itemtype     => '*',
172
            maxissueqty        => 1,
172
            rules        => {
173
            maxonsiteissueqty  => undef,
173
                maxissueqty       => 1,
174
                maxonsiteissueqty => undef,
175
            }
174
        },
176
        },
175
    });
177
    );
178
176
    my $issue = C4::Circulation::AddIssue( $patron, $item->{barcode}, dt_from_string() );
179
    my $issue = C4::Circulation::AddIssue( $patron, $item->{barcode}, dt_from_string() );
177
    t::lib::Mocks::mock_preference('ConsiderOnSiteCheckoutsAsNormalCheckouts', 0);
180
    t::lib::Mocks::mock_preference('ConsiderOnSiteCheckoutsAsNormalCheckouts', 0);
178
    is_deeply(
181
    is_deeply(
(-)a/t/db_dependent/Holds/DisallowHoldIfItemsAvailable.t (-3 / +1 lines)
Lines 126-132 AddReturn( $item1->{barcode} ); Link Here
126
        my $hold_allowed_from_home_library = 1;
126
        my $hold_allowed_from_home_library = 1;
127
        my $hold_allowed_from_any_libraries = 2;
127
        my $hold_allowed_from_any_libraries = 2;
128
        my $sth_delete_rules = $dbh->prepare(q|DELETE FROM default_circ_rules|);
128
        my $sth_delete_rules = $dbh->prepare(q|DELETE FROM default_circ_rules|);
129
        my $sth_insert_rule = $dbh->prepare(q|INSERT INTO default_circ_rules(singleton, maxissueqty, maxonsiteissueqty, holdallowed, hold_fulfillment_policy, returnbranch) VALUES ('singleton', NULL, NULL, ?, 'any', 'homebranch');|);
129
        my $sth_insert_rule = $dbh->prepare(q|INSERT INTO default_circ_rules(singleton, holdallowed, hold_fulfillment_policy, returnbranch) VALUES ('singleton', ?, 'any', 'homebranch');|);
130
130
131
        subtest 'Item is available at a different library' => sub {
131
        subtest 'Item is available at a different library' => sub {
132
            plan tests => 4;
132
            plan tests => 4;
Lines 240-246 $rule = Koha::IssuingRule->new( Link Here
240
        categorycode => '*',
240
        categorycode => '*',
241
        itemtype     => '*',
241
        itemtype     => '*',
242
        branchcode   => '*',
242
        branchcode   => '*',
243
        maxissueqty  => 99,
244
        issuelength  => 7,
243
        issuelength  => 7,
245
        lengthunit   => 8,
244
        lengthunit   => 8,
246
        reservesallowed => 99,
245
        reservesallowed => 99,
247
- 

Return to bug 18925