}
)->insert();
-subtest 'holds + holds_placed_before_today' => sub {
+subtest 'holds + current_holds' => sub {
plan tests => 5;
C4::Reserves::AddReserve( $patron->branchcode, $patron->borrowernumber, $biblio->biblionumber );
my $holds = $biblio->holds;
C4::Reserves::AddReserve( $patron->branchcode, $patron->borrowernumber, $biblio->biblionumber, undef, undef, dt_from_string->add( days => 2 ) );
$holds = $biblio->holds;
is( $holds->count, 1, '->holds should return future holds' );
- $holds = $biblio->holds_placed_before_today;
- is( $holds->count, 0, '->holds_placed_before_today should not return future holds' );
+ $holds = $biblio->current_holds;
+ is( $holds->count, 0, '->current_holds should not return future holds' );
$holds->delete;
};