Lines 1344-1351
subtest 'checkpw() return values tests' => sub {
Link Here
|
1344 |
$auth_mock->mock( 'shib_ok', 1 ); |
1344 |
$auth_mock->mock( 'shib_ok', 1 ); |
1345 |
$auth_mock->mock( 'get_login_shib', 1 ); |
1345 |
$auth_mock->mock( 'get_login_shib', 1 ); |
1346 |
|
1346 |
|
1347 |
my $shib_mock = Test::MockModule->new('C4::Auth_with_shibboleth'); |
1347 |
my $shib_mock = Test::MockModule->new('Koha::Auth::ShibbolethCompat'); |
1348 |
$shib_mock->mock( 'checkpw_shib', sub { return @shib_return; } ); |
1348 |
$shib_mock->mock( 'authenticate_shibboleth_user', sub { return @shib_return; } ); |
1349 |
|
1349 |
|
1350 |
$account_locked = 1; |
1350 |
$account_locked = 1; |
1351 |
my @return = checkpw( $patron->userid ); |
1351 |
my @return = checkpw( $patron->userid ); |
1352 |
- |
|
|