Lines 94-100
subtest 'track_login_for_session() tests' => sub {
Link Here
|
94 |
$patron->_result()->discard_changes(); |
94 |
$patron->_result()->discard_changes(); |
95 |
isnt( $patron->lastseen, undef, 'Patron should have last seen set when TrackLastPatronActivity = 1' ); |
95 |
isnt( $patron->lastseen, undef, 'Patron should have last seen set when TrackLastPatronActivity = 1' ); |
96 |
|
96 |
|
97 |
sleep(1); # We need to wait a tiny bit to make sure the timestamp will be different |
97 |
sleep(1); # We need to wait a tiny bit to make sure the timestamp will be different |
98 |
my $last_seen = $patron->lastseen; |
98 |
my $last_seen = $patron->lastseen; |
99 |
C4::Auth::track_login_for_session( $userid, $session ); |
99 |
C4::Auth::track_login_for_session( $userid, $session ); |
100 |
$patron->_result()->discard_changes(); |
100 |
$patron->_result()->discard_changes(); |
101 |
- |
|
|