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

(-)a/t/db_dependent/api/v1/holds.t (-3 / +4 lines)
Lines 137-150 my $itemnumber2 = $item2->{itemnumber}; Link Here
137
137
138
my $dbh = C4::Context->dbh;
138
my $dbh = C4::Context->dbh;
139
$dbh->do('DELETE FROM reserves');
139
$dbh->do('DELETE FROM reserves');
140
$dbh->do('DELETE FROM circulation_rules');
140
Koha::CirculationRules->search()->delete();
141
Koha::CirculationRules->set_rules(
141
Koha::CirculationRules->set_rules(
142
    {
142
    {
143
        categorycode => '*',
143
        categorycode => '*',
144
        branchcode   => '*',
144
        branchcode   => '*',
145
        itemtype     => '*',
145
        itemtype     => '*',
146
        rules        => {
146
        rules        => {
147
            reservesallowed => 1
147
            reservesallowed => 1,
148
            holds_per_record => 99
148
        }
149
        }
149
    }
150
    }
150
);
151
);
Lines 208-213 subtest "Test endpoints without permission" => sub { Link Here
208
    $t->request_ok($tx) # no permission
209
    $t->request_ok($tx) # no permission
209
      ->status_is(403);
210
      ->status_is(403);
210
};
211
};
212
211
subtest "Test endpoints without permission, but accessing own object" => sub {
213
subtest "Test endpoints without permission, but accessing own object" => sub {
212
    plan tests => 15;
214
    plan tests => 15;
213
215
214
- 

Return to bug 18936