Lines 19-25
Link Here
|
19 |
|
19 |
|
20 |
use Modern::Perl; |
20 |
use Modern::Perl; |
21 |
|
21 |
|
22 |
use Test::More tests => 38; |
22 |
use Test::More tests => 39; |
23 |
use t::lib::TestBuilder; |
23 |
use t::lib::TestBuilder; |
24 |
use t::lib::Mocks; |
24 |
use t::lib::Mocks; |
25 |
|
25 |
|
Lines 289-293
ok( $hold_id, 'Second hold was placed' );
Link Here
|
289 |
$can = CanBookBeReserved($patron->{borrowernumber}, $biblio->{biblionumber}); |
289 |
$can = CanBookBeReserved($patron->{borrowernumber}, $biblio->{biblionumber}); |
290 |
is( $can->{status}, 'tooManyHoldsForThisRecord', 'Third hold exceeds limit of holds per record' ); |
290 |
is( $can->{status}, 'tooManyHoldsForThisRecord', 'Third hold exceeds limit of holds per record' ); |
291 |
|
291 |
|
292 |
$schema->storage->txn_rollback; |
292 |
Koha::Holds->find($hold_id)->found("W")->store; |
|
|
293 |
$can = CanBookBeReserved($patron->{borrowernumber}, $biblio->{biblionumber}); |
294 |
is( $can->{status}, 'tooManyHoldsForThisRecord', 'Third hold exceeds limit of holds per record' ); |
293 |
|
295 |
|
294 |
- |
296 |
$schema->storage->txn_rollback; |