|
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 221-226
AlterPriority( 'bottom', $hold->reserve_id, undef, 2, 1, 6 );
Link Here
|
| 221 |
$hold = Koha::Holds->find( $reserveid ); |
223 |
$hold = Koha::Holds->find( $reserveid ); |
| 222 |
is( $hold->priority, '6', "Test AlterPriority(), move to bottom" ); |
224 |
is( $hold->priority, '6', "Test AlterPriority(), move to bottom" ); |
| 223 |
|
225 |
|
|
|
226 |
|
| 227 |
$hold->delete; |
| 228 |
throws_ok |
| 229 |
{ C4::Reserves::ModReserve({ reserve_id => $hold->reserve_id }) } |
| 230 |
'Koha::Exceptions::ObjectNotFound', |
| 231 |
'No hold with id ' . $hold->reserve_id; |
| 232 |
|
| 224 |
# Regression test for bug 2394 |
233 |
# Regression test for bug 2394 |
| 225 |
# |
234 |
# |
| 226 |
# If IndependentBranches is ON and canreservefromotherbranches is OFF, |
235 |
# If IndependentBranches is ON and canreservefromotherbranches is OFF, |
| 227 |
- |
|
|