|
Lines 71-81
$t->get_ok( "//$userid:$password@/api/v1/checkouts?patron_id=$notexisting_patron
Link Here
|
| 71 |
->status_is(200) |
71 |
->status_is(200) |
| 72 |
->json_is([]); |
72 |
->json_is([]); |
| 73 |
|
73 |
|
| 74 |
$dbh->do('DELETE FROM issuingrules'); |
74 |
Koha::CirculationRules->set_rules( |
| 75 |
$dbh->do(q{ |
75 |
{ |
| 76 |
INSERT INTO issuingrules (categorycode, branchcode, itemtype, renewalperiod, renewalsallowed, issuelength) |
76 |
categorycode => undef, |
| 77 |
VALUES (?, ?, ?, ?, ?, ?) |
77 |
itemtype => undef, |
| 78 |
}, {}, '*', '*', '*', 7, 1, 5); |
78 |
branchcode => undef, |
|
|
79 |
rules => { |
| 80 |
renewalperiod => 7, |
| 81 |
renewalsallowed => 1, |
| 82 |
issuelength => 5, |
| 83 |
} |
| 84 |
} |
| 85 |
); |
| 79 |
|
86 |
|
| 80 |
my $item1 = $builder->build_sample_item; |
87 |
my $item1 = $builder->build_sample_item; |
| 81 |
my $item2 = $builder->build_sample_item; |
88 |
my $item2 = $builder->build_sample_item; |
|
Lines 173-179
$t->get_ok( "//$userid:$password@/api/v1/checkouts/" . $issue2->issue_id)
Link Here
|
| 173 |
->status_is(200) |
180 |
->status_is(200) |
| 174 |
->json_is('/due_date' => output_pref( { dateformat => "rfc3339", dt => $date_due2 }) ); |
181 |
->json_is('/due_date' => output_pref( { dateformat => "rfc3339", dt => $date_due2 }) ); |
| 175 |
|
182 |
|
| 176 |
|
|
|
| 177 |
my $expected_datedue = $date_due |
183 |
my $expected_datedue = $date_due |
| 178 |
->set_time_zone('local') |
184 |
->set_time_zone('local') |
| 179 |
->add(days => 7) |
185 |
->add(days => 7) |
| 180 |
- |
|
|