()
| 71 | } |
| 72 | |
| 73 | func (s *CompatSuite) TestGetCapabilities() { |
| 74 | inst := s.p.NewPluginInstance(UserContext{ |
| 75 | ID: 2, |
| 76 | Name: "test2", |
| 77 | }) |
| 78 | |
| 79 | c := inst.Supports() |
| 80 | |
| 81 | assert.Contains(s.T(), c, Webhooker) |
| 82 | assert.Contains(s.T(), c.Strings(), string(Webhooker)) |
| 83 | assert.True(s.T(), HasSupport(inst, Webhooker)) |
| 84 | assert.False(s.T(), HasSupport(inst, "not_exist")) |
| 85 | } |
| 86 | |
| 87 | func (s *CompatSuite) TestSetConfig() { |
| 88 | inst := s.p.NewPluginInstance(UserContext{ |
nothing calls this directly
no test coverage detected