Lines 1474-1479
subtest 'AutoSelfCheckAllowed' => sub {
Link Here
|
1474 |
$auth->mock( 'safe_exit', sub { return } ); |
1474 |
$auth->mock( 'safe_exit', sub { return } ); |
1475 |
|
1475 |
|
1476 |
t::lib::Mocks::mock_preference( 'AutoSelfCheckAllowed', 0 ); |
1476 |
t::lib::Mocks::mock_preference( 'AutoSelfCheckAllowed', 0 ); |
|
|
1477 |
C4::Context->unset_userenv(); |
1477 |
|
1478 |
|
1478 |
# Pref is off, cannot access sco |
1479 |
# Pref is off, cannot access sco |
1479 |
{ |
1480 |
{ |
Lines 1499-1504
subtest 'AutoSelfCheckAllowed' => sub {
Link Here
|
1499 |
t::lib::Mocks::mock_preference( 'AutoSelfCheckID', '' ); |
1500 |
t::lib::Mocks::mock_preference( 'AutoSelfCheckID', '' ); |
1500 |
t::lib::Mocks::mock_preference( 'AutoSelfCheckPass', '' ); |
1501 |
t::lib::Mocks::mock_preference( 'AutoSelfCheckPass', '' ); |
1501 |
|
1502 |
|
|
|
1503 |
|
1502 |
# Credential prefs are empty, cannot access sco |
1504 |
# Credential prefs are empty, cannot access sco |
1503 |
{ |
1505 |
{ |
1504 |
# checkauth will redirect and safe_exit if not authenticated and not authorized |
1506 |
# checkauth will redirect and safe_exit if not authenticated and not authorized |
1505 |
- |
|
|