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

(-)a/t/db_dependent/api/v1/holds.t (-3 / +4 lines)
Lines 121-134 my $itemnumber2 = create_item($biblionumber2, 'TEST000002'); Link Here
121
121
122
my $dbh = C4::Context->dbh;
122
my $dbh = C4::Context->dbh;
123
$dbh->do('DELETE FROM reserves');
123
$dbh->do('DELETE FROM reserves');
124
$dbh->do('DELETE FROM circulation_rules');
124
Koha::CirculationRules->search()->delete();
125
Koha::CirculationRules->set_rules(
125
Koha::CirculationRules->set_rules(
126
    {
126
    {
127
        categorycode => '*',
127
        categorycode => '*',
128
        branchcode   => '*',
128
        branchcode   => '*',
129
        itemtype     => '*',
129
        itemtype     => '*',
130
        rules        => {
130
        rules        => {
131
            reservesallowed => 1
131
            reservesallowed => 1,
132
            holds_per_record => 99
132
        }
133
        }
133
    }
134
    }
134
);
135
);
Lines 192-197 subtest "Test endpoints without permission" => sub { Link Here
192
    $t->request_ok($tx) # no permission
193
    $t->request_ok($tx) # no permission
193
      ->status_is(403);
194
      ->status_is(403);
194
};
195
};
196
195
subtest "Test endpoints without permission, but accessing own object" => sub {
197
subtest "Test endpoints without permission, but accessing own object" => sub {
196
    plan tests => 15;
198
    plan tests => 15;
197
199
198
- 

Return to bug 18936