Lines 7-13
use t::lib::TestBuilder;
Link Here
|
7 |
|
7 |
|
8 |
use C4::Context; |
8 |
use C4::Context; |
9 |
|
9 |
|
10 |
use Test::More tests => 72; |
10 |
use Test::More tests => 73; |
|
|
11 |
use Test::Exception; |
12 |
|
11 |
use MARC::Record; |
13 |
use MARC::Record; |
12 |
|
14 |
|
13 |
use C4::Biblio; |
15 |
use C4::Biblio; |
Lines 223-228
AlterPriority( 'bottom', $hold->reserve_id, undef, 2, 1, 6 );
Link Here
|
223 |
$hold = Koha::Holds->find( $reserveid ); |
225 |
$hold = Koha::Holds->find( $reserveid ); |
224 |
is( $hold->priority, '6', "Test AlterPriority(), move to bottom" ); |
226 |
is( $hold->priority, '6', "Test AlterPriority(), move to bottom" ); |
225 |
|
227 |
|
|
|
228 |
|
229 |
$hold->delete; |
230 |
throws_ok |
231 |
{ C4::Reserves::ModReserve({ reserve_id => $hold->reserve_id }) } |
232 |
'Koha::Exceptions::ObjectNotFound', |
233 |
'No hold with id ' . $hold->reserve_id; |
234 |
|
226 |
# Regression test for bug 2394 |
235 |
# Regression test for bug 2394 |
227 |
# |
236 |
# |
228 |
# If IndependentBranches is ON and canreservefromotherbranches is OFF, |
237 |
# If IndependentBranches is ON and canreservefromotherbranches is OFF, |
229 |
- |
|
|