From 8ab3989654b900cef2954c469b12ddce4375c9b8 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 Signed-off-by: Martin Renvoize --- 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 129bb8a57b..99beff8975 100755 --- a/t/db_dependent/Auth.t +++ b/t/db_dependent/Auth.t @@ -1474,6 +1474,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 { @@ -1499,6 +1500,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.39.5