From c1e92a11745e14e26c58dee25a8ed96abe0e6554 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/db_dependent/Koha/Patron.t b/t/db_dependent/Koha/Patron.t index d3fd6df69f2..05ffc587d40 100755 --- a/t/db_dependent/Koha/Patron.t +++ b/t/db_dependent/Koha/Patron.t @@ -19,7 +19,7 @@ use Modern::Perl; -use Test::More tests => 27; +use Test::More tests => 28; use Test::Exception; use Test::Warn; use Time::Fake; @@ -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