File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -275,6 +275,9 @@ func TestDeleteOrganization(t *testing.T) {
275
275
nonOrg := AssertExistsAndLoadBean (t , & User {ID : 5 }).(* User )
276
276
assert .Error (t , DeleteOrganization (nonOrg ))
277
277
CheckConsistencyFor (t , & User {}, & Team {})
278
+
279
+ user := AssertExistsAndLoadBean (t , & User {ID : 2 }).(* User )
280
+ assert .Error (t , DeleteOrganization (user ))
278
281
}
279
282
280
283
func TestIsOrganizationOwner (t * testing.T ) {
Original file line number Diff line number Diff line change @@ -199,6 +199,9 @@ func TestDeleteUser(t *testing.T) {
199
199
test (4 )
200
200
test (8 )
201
201
test (11 )
202
+
203
+ org := AssertExistsAndLoadBean (t , & User {ID : 3 }).(* User )
204
+ assert .Error (t , DeleteUser (org ))
202
205
}
203
206
204
207
func TestEmailNotificationPreferences (t * testing.T ) {
You can’t perform that action at this time.
0 commit comments