()
| 242 | } |
| 243 | |
| 244 | func (s *ManagerSuite) TestSetPluginEnabled() { |
| 245 | pid := s.getConfForMockPlugin(1).ID |
| 246 | assert.Nil(s.T(), s.manager.SetPluginEnabled(pid, true)) |
| 247 | assert.Error(s.T(), s.manager.SetPluginEnabled(pid, true)) |
| 248 | assert.Nil(s.T(), s.manager.SetPluginEnabled(pid, false)) |
| 249 | } |
| 250 | |
| 251 | func (s *ManagerSuite) TestSetPluginEnabled_EnableReturnsError_cannotEnable() { |
| 252 | s.db.NewUserWithName(5, "enable_fail") |
nothing calls this directly
no test coverage detected