projects
/
koha-ffzg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bug 20567: Add tests
[koha-ffzg.git]
/
t
/
db_dependent
/
Reserves
/
MultiplePerRecord.t
diff --git
a/t/db_dependent/Reserves/MultiplePerRecord.t
b/t/db_dependent/Reserves/MultiplePerRecord.t
index
7f639ce
..
80c1c3e
100755
(executable)
--- a/
t/db_dependent/Reserves/MultiplePerRecord.t
+++ b/
t/db_dependent/Reserves/MultiplePerRecord.t
@@
-19,7
+19,7
@@
use Modern::Perl;
use Modern::Perl;
-use Test::More tests => 3
8
;
+use Test::More tests => 3
9
;
use t::lib::TestBuilder;
use t::lib::Mocks;
use t::lib::TestBuilder;
use t::lib::Mocks;
@@
-289,5
+289,8
@@
ok( $hold_id, 'Second hold was placed' );
$can = CanBookBeReserved($patron->{borrowernumber}, $biblio->{biblionumber});
is( $can->{status}, 'tooManyHoldsForThisRecord', 'Third hold exceeds limit of holds per record' );
$can = CanBookBeReserved($patron->{borrowernumber}, $biblio->{biblionumber});
is( $can->{status}, 'tooManyHoldsForThisRecord', 'Third hold exceeds limit of holds per record' );
-$schema->storage->txn_rollback;
+Koha::Holds->find($hold_id)->found("W")->store;
+$can = CanBookBeReserved($patron->{borrowernumber}, $biblio->{biblionumber});
+is( $can->{status}, 'tooManyHoldsForThisRecord', 'Third hold exceeds limit of holds per record' );
+$schema->storage->txn_rollback;