|
Lines 397-406
ok(
Link Here
|
| 397 |
"cannot request item if policy that matches on bib-level item type forbids it (bug 9532)" |
397 |
"cannot request item if policy that matches on bib-level item type forbids it (bug 9532)" |
| 398 |
); |
398 |
); |
| 399 |
|
399 |
|
| 400 |
is(CanBookBeReserved($borrowernumbers[0], $bibnum), 'alreadyReserved'); |
400 |
is(CanBookBeReserved($borrowernumbers[0], $bibnum), 'none_available'); |
| 401 |
|
401 |
|
| 402 |
C4::Context->set_preference('maxreserves', 1); |
402 |
C4::Context->set_preference('maxreserves', 1); |
| 403 |
ok(CanBookBeReserved($borrowernumbers[0], $biblionumber) eq 'tooManyReserves'); |
403 |
is(CanBookBeReserved($borrowernumbers[0], $biblionumber), 'tooManyReserves'); |
| 404 |
|
404 |
|
| 405 |
C4::Context->set_preference('maxreserves', 0); |
405 |
C4::Context->set_preference('maxreserves', 0); |
| 406 |
t::lib::Mocks::mock_preference('IndependentBranches', 1); |
406 |
t::lib::Mocks::mock_preference('IndependentBranches', 1); |
| 407 |
- |
|
|