Bug 23233: (follow-up) Correct test description

AllowItemsOnHoldCheckout is not checked anymore but instead only
whether the tmp_holdsqueue is empty or not.

Signed-off-by: Lari Taskula <lari.taskula@hypernova.fi>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Joonas Kylmälä 2019-10-22 11:20:39 +00:00 committed by Martin Renvoize
parent b2b9f2ceb8
commit dac488b55f
Signed by: martin.renvoize
GPG key ID: 422B469130441A0F

View file

@ -322,7 +322,7 @@ subtest 'GetItemsInfo tests' => sub {
$dbh->do(q{INSERT INTO tmp_holdsqueue (biblionumber, itemnumber, surname, borrowernumber ) VALUES (?, ?, "Zorro", 42)}, undef, $item_bibnum, $itemnumber); $dbh->do(q{INSERT INTO tmp_holdsqueue (biblionumber, itemnumber, surname, borrowernumber ) VALUES (?, ?, "Zorro", 42)}, undef, $item_bibnum, $itemnumber);
@results = GetItemsInfo( $biblio->biblionumber ); @results = GetItemsInfo( $biblio->biblionumber );
is( $results[0]->{ has_pending_hold }, "1", is( $results[0]->{ has_pending_hold }, "1",
'Hold marked as pending/unavailable if not AllowItemsOnHoldCheckout' ); 'Hold marked as pending/unavailable if tmp_holdsqueue is not empty for item' );
$schema->storage->txn_rollback; $schema->storage->txn_rollback;
}; };