Skip to content

Commit

Permalink
fix: MakeSession test
Browse files Browse the repository at this point in the history
  • Loading branch information
devhaozi committed Jul 12, 2024
1 parent d68966f commit 0790bec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions foundation/application_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,8 @@ func (s *ApplicationTestSuite) TestMakeSchedule() {

func (s *ApplicationTestSuite) TestMakeSession() {
mockConfig := &configmocks.Config{}
mockConfig.On("GetInt", "session.lifetime").Return(120).Once()
mockConfig.On("GetString", "session.files").Return("storage/framework/sessions").Once()

s.app.Singleton(frameworkconfig.Binding, func(app foundation.Application) (any, error) {
return mockConfig, nil
Expand Down

0 comments on commit 0790bec

Please sign in to comment.