Skip to content

Commit

Permalink
Separate logged out access control test
Browse files Browse the repository at this point in the history
  • Loading branch information
DhiraPT committed Jan 31, 2025
1 parent 3bd52f2 commit 72f43e7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/test/java/teammates/sqlui/webapi/DeleteStudentsActionTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -139,4 +139,14 @@ void testSpecificAccessControl_student_cannotAccess() {
logoutUser();
verifyCannotAccess(params);
}

@Test
public void testSpecificAccessControl_loggedOut_cannotAccess() {
String[] params = {
Const.ParamsNames.COURSE_ID, course.getId(),
};

logoutUser();
verifyCannotAccess(params);
}
}

0 comments on commit 72f43e7

Please sign in to comment.