Bug 15504: (follow-up) Fix is_active test

Bug 33245 introduced a new is_active patron method and the corresponding
tests included calls to the method we depreacte in this patchset

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Martin Renvoize 2023-10-06 11:37:19 +01:00 committed by Tomas Cohen Arazi
parent 2d8dfd89c2
commit 305a221112
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
1 changed files with 1 additions and 1 deletions

View File

@ -339,7 +339,7 @@ subtest 'is_active' => sub {
# Check lastseen, test days parameter
t::lib::Mocks::mock_preference( 'TrackLastPatronActivity', 1 );
$patron->track_login;
$patron->update_lastseen('login');
is( $patron->is_active( { days => 1 } ), 1, 'Just logged in' );
my $ago = dt_from_string->subtract( days => 2 );
$patron->lastseen($ago)->store;