MCPcopy
hub / github.com/pocketbase/pocketbase / TestExternalAuthCreated

Function TestExternalAuthCreated

core/external_auth_model_test.go:135–153  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

133}
134
135func TestExternalAuthCreated(t *testing.T) {
136 t.Parallel()
137
138 app, _ := tests.NewTestApp()
139 defer app.Cleanup()
140
141 ea := core.NewExternalAuth(app)
142
143 if v := ea.Created().String(); v != "" {
144 t.Fatalf("Expected empty created, got %q", v)
145 }
146
147 now := types.NowDateTime()
148 ea.SetRaw("created", now)
149
150 if v := ea.Created().String(); v != now.String() {
151 t.Fatalf("Expected %q created, got %q", now.String(), v)
152 }
153}
154
155func TestExternalAuthUpdated(t *testing.T) {
156 t.Parallel()

Callers

nothing calls this directly

Calls 7

CleanupMethod · 0.95
CreatedMethod · 0.95
NewTestAppFunction · 0.92
NewExternalAuthFunction · 0.92
NowDateTimeFunction · 0.92
SetRawMethod · 0.80
StringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…