From 0d7dfd6ed68dfa0c4b3386a893d76c42a3b81752 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Fri, 6 Oct 2023 11:37:19 +0100 Subject: [PATCH] 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 --- t/db_dependent/Koha/Patron.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/db_dependent/Koha/Patron.t b/t/db_dependent/Koha/Patron.t index 3ba784b5ce0..a38ed7ea195 100755 --- a/t/db_dependent/Koha/Patron.t +++ b/t/db_dependent/Koha/Patron.t @@ -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; -- 2.41.0