()
| 277 | } |
| 278 | |
| 279 | func (s *ManagerSuite) TestAddRemoveNewUser() { |
| 280 | s.db.User(7) |
| 281 | s.makeDanglingPluginConf(7) |
| 282 | |
| 283 | assert.Nil(s.T(), s.manager.InitializeForUserID(7)) |
| 284 | pid := s.getConfForExamplePlugin(7).ID |
| 285 | assert.True(s.T(), s.manager.HasInstance(pid)) |
| 286 | |
| 287 | assert.Nil(s.T(), s.manager.SetPluginEnabled(s.getConfForMockPlugin(7).ID, true)) |
| 288 | |
| 289 | assert.Nil(s.T(), s.manager.RemoveUser(7)) |
| 290 | assert.False(s.T(), s.manager.HasInstance(pid)) |
| 291 | } |
| 292 | |
| 293 | func (s *ManagerSuite) TestRemoveUser_DisableFail_cannotRemove() { |
| 294 | s.manager.initializeForUser(*s.db.NewUserWithName(8, "disable_fail_2")) |
nothing calls this directly
no test coverage detected