(t *testing.T)
| 133 | } |
| 134 | |
| 135 | func 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 | |
| 155 | func TestExternalAuthUpdated(t *testing.T) { |
| 156 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…