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:
parent
2d8dfd89c2
commit
305a221112
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue