Lines 52-57
subtest 'checkauth() tests' => sub {
Link Here
|
52 |
} |
52 |
} |
53 |
); |
53 |
); |
54 |
$cgi->mock( 'cookie', sub { return; } ); |
54 |
$cgi->mock( 'cookie', sub { return; } ); |
|
|
55 |
$cgi->mock( 'request_method', sub { return 'POST' } ); |
55 |
|
56 |
|
56 |
my $authnotrequired = 1; |
57 |
my $authnotrequired = 1; |
57 |
my ( $userid, $cookie, $sessionID, $flags ) = C4::Auth::checkauth( $cgi, $authnotrequired ); |
58 |
my ( $userid, $cookie, $sessionID, $flags ) = C4::Auth::checkauth( $cgi, $authnotrequired ); |
Lines 68-73
subtest 'checkauth() tests' => sub {
Link Here
|
68 |
elsif ( $param eq 'password' ) { return $db_user_pass; } |
69 |
elsif ( $param eq 'password' ) { return $db_user_pass; } |
69 |
else { return; } |
70 |
else { return; } |
70 |
}); |
71 |
}); |
|
|
72 |
$cgi->mock( 'request_method', sub { return 'POST' } ); |
71 |
( $userid, $cookie, $sessionID, $flags ) = C4::Auth::checkauth( $cgi, $authnotrequired ); |
73 |
( $userid, $cookie, $sessionID, $flags ) = C4::Auth::checkauth( $cgi, $authnotrequired ); |
72 |
is ( $userid, undef, 'If DB user is used, it should not be logged in' ); |
74 |
is ( $userid, undef, 'If DB user is used, it should not be logged in' ); |
73 |
|
75 |
|
74 |
- |
|
|