summaryrefslogtreecommitdiff
path: root/internal/middlewares/authelia_context_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/middlewares/authelia_context_test.go')
-rw-r--r--internal/middlewares/authelia_context_test.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/internal/middlewares/authelia_context_test.go b/internal/middlewares/authelia_context_test.go
index 60c972f0c..54451890a 100644
--- a/internal/middlewares/authelia_context_test.go
+++ b/internal/middlewares/authelia_context_test.go
@@ -423,6 +423,14 @@ func TestShouldDetectNonXHR(t *testing.T) {
assert.False(t, mock.Ctx.IsXHR())
}
+func TestAutheliaCtxMisc(t *testing.T) {
+ ctx := middlewares.NewAutheliaCtx(&fasthttp.RequestCtx{}, schema.Configuration{}, middlewares.Providers{})
+
+ assert.NotNil(t, ctx.GetConfiguration())
+ assert.NotNil(t, ctx.GetProviders())
+ assert.NotNil(t, ctx.GetLogger())
+}
+
func TestShouldReturnCorrectSecondFactorMethods(t *testing.T) {
mock := mocks.NewMockAutheliaCtx(t)
defer mock.Close()