Bug 21684: Fix Hold.t
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
parent
276b646925
commit
b8c0a387c8
1 changed files with 2 additions and 2 deletions
|
@ -150,7 +150,7 @@ subtest "delete() tests" => sub {
|
|||
|
||||
my $hold_object = Koha::Holds->find( $hold->{ reserve_id } );
|
||||
my $deleted = $hold_object->delete;
|
||||
is( $deleted, 1, 'Koha::Hold->delete should return 1 if the hold has been correctly deleted' );
|
||||
is( ref($deleted), 'Koha::Hold', 'Koha::Hold->delete should return the Koha::Hold object if the hold has been correctly deleted' );
|
||||
is( Koha::Holds->search({ reserve_id => $hold->{ reserve_id } })->count, 0,
|
||||
"Koha::Hold->delete should have deleted the hold" );
|
||||
|
||||
|
@ -165,7 +165,7 @@ subtest "delete() tests" => sub {
|
|||
|
||||
$hold_object = Koha::Holds->find( $hold->{ reserve_id } );
|
||||
$deleted = $hold_object->delete;
|
||||
is( $deleted, 1, 'Koha::Hold->delete should return 1 if the hold has been correctly deleted' );
|
||||
is( ref($deleted), 'Koha::Hold', 'Koha::Hold->delete should return a Koha::Hold object if the hold has been correctly deleted' );
|
||||
is( Koha::Holds->search({ reserve_id => $hold->{ reserve_id } })->count, 0,
|
||||
"Koha::Hold->delete should have deleted the hold" );
|
||||
|
||||
|
|
Loading…
Reference in a new issue