MCPcopy
hub / github.com/ory/hydra / TestCreateSession

Method TestCreateSession

persistence/sql/persister_nid_test.go:202–213  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

200}
201
202func (s *PersisterTestSuite) TestCreateSession() {
203 for k, r := range s.registries {
204 s.T().Run(k, func(t *testing.T) {
205 ls := newLoginSession()
206 require.NoError(t, r.Persister().ConfirmLoginSession(s.t1, ls))
207 actual := &flow.LoginSession{}
208 require.NoError(t, r.Persister().Connection(context.Background()).Find(actual, ls.ID))
209 require.Equal(t, s.t1NID, actual.NID)
210 require.Equal(t, ls, actual)
211 })
212 }
213}
214
215func (s *PersisterTestSuite) TestCreateAccessTokenSession() {
216 for k, r := range s.registries {

Callers

nothing calls this directly

Calls 4

newLoginSessionFunction · 0.85
ConfirmLoginSessionMethod · 0.65
PersisterMethod · 0.65
ConnectionMethod · 0.65

Tested by

no test coverage detected