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 127-133 AddReturn( $item1->{barcode} ); Link Here
127
        my $hold_allowed_from_home_library = 1;
127
        my $hold_allowed_from_home_library = 1;
128
        my $hold_allowed_from_any_libraries = 2;
128
        my $hold_allowed_from_any_libraries = 2;
129
        my $sth_delete_rules = $dbh->prepare(q|DELETE FROM default_circ_rules|);
129
        my $sth_delete_rules = $dbh->prepare(q|DELETE FROM default_circ_rules|);
130
        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');|);
130
        my $sth_insert_rule = $dbh->prepare(q|INSERT INTO default_circ_rules(singleton, holdallowed, hold_fulfillment_policy, returnbranch) VALUES ('singleton', ?, 'any', 'homebranch');|);
131
131
132
        subtest 'Item is available at a different library' => sub {
132
        subtest 'Item is available at a different library' => sub {
133
            plan tests => 4;
133
            plan tests => 4;
Lines 243-249 $rule = Koha::IssuingRule->new( Link Here
243
        categorycode => '*',
243
        categorycode => '*',
244
        itemtype     => '*',
244
        itemtype     => '*',
245
        branchcode   => '*',
245
        branchcode   => '*',
246
        maxissueqty  => 99,
247
        issuelength  => 7,
246
        issuelength  => 7,
248
        lengthunit   => 8,
247
        lengthunit   => 8,
249
        reservesallowed => 99,
248
        reservesallowed => 99,
250
- 

Return to bug 18925