View | Details | Raw Unified | Return to bug 17583
Collapse All | Expand All

(-)a/t/db_dependent/Koha/Patrons.t (-2 / +2 lines)
Lines 191-200 subtest 'is_going_to_expired' => sub { Link Here
191
    is( $patron->is_going_to_expired, 0, 'Patron should not be considered going to expire if dateexpiry is not set');
191
    is( $patron->is_going_to_expired, 0, 'Patron should not be considered going to expire if dateexpiry is not set');
192
    $patron->dateexpiry( '0000-00-00' )->store->discard_changes;
192
    $patron->dateexpiry( '0000-00-00' )->store->discard_changes;
193
    is( $patron->is_going_to_expired, 0, 'Patron should not be considered going to expire if dateexpiry is not 0000-00-00');
193
    is( $patron->is_going_to_expired, 0, 'Patron should not be considered going to expire if dateexpiry is not 0000-00-00');
194
195
    t::lib::Mocks::mock_preference('NotifyBorrowerDeparture', 0);
194
    $patron->dateexpiry( dt_from_string )->store->discard_changes;
196
    $patron->dateexpiry( dt_from_string )->store->discard_changes;
195
    is( $patron->is_going_to_expired, 0, 'Patron should not be considered going to expire if dateexpiry is today');
197
    is( $patron->is_going_to_expired, 0, 'Patron should not be considered going to expire if dateexpiry is today');
196
198
197
    t::lib::Mocks::mock_preference('NotifyBorrowerDeparture', 0);
198
    $patron->dateexpiry( dt_from_string )->store->discard_changes;
199
    $patron->dateexpiry( dt_from_string )->store->discard_changes;
199
    is( $patron->is_going_to_expired, 0, 'Patron should not be considered going to expire if dateexpiry is today and pref is 0');
200
    is( $patron->is_going_to_expired, 0, 'Patron should not be considered going to expire if dateexpiry is today and pref is 0');
200
201
201
- 

Return to bug 17583