From 81e14b5923c4fcd6f4cf0ed2a8c4ff44c497caa6 Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Thu, 18 Apr 2024 16:38:03 +0200 Subject: [PATCH] Bug 36367: Fix test t/db_dependent/Auth.t Signed-off-by: Julian Maurice --- t/db_dependent/Auth.t | 2 ++ 1 file changed, 2 insertions(+) diff --git a/t/db_dependent/Auth.t b/t/db_dependent/Auth.t index dafef021e7..7d37f05a4f 100755 --- a/t/db_dependent/Auth.t +++ b/t/db_dependent/Auth.t @@ -1351,6 +1351,7 @@ subtest 'AutoSelfCheckAllowed' => sub { $auth->mock( 'safe_exit', sub { return } ); t::lib::Mocks::mock_preference( 'AutoSelfCheckAllowed', 0 ); + C4::Context->unset_userenv(); # Pref is off, cannot access sco { @@ -1376,6 +1377,7 @@ subtest 'AutoSelfCheckAllowed' => sub { t::lib::Mocks::mock_preference( 'AutoSelfCheckID', '' ); t::lib::Mocks::mock_preference( 'AutoSelfCheckPass', '' ); + # Credential prefs are empty, cannot access sco { # checkauth will redirect and safe_exit if not authenticated and not authorized -- 2.30.2