Skip to content

Commit 7d197f6

Browse files
author
Oyvind Timian Dokk Husveg
committed
Changed test to accompany new user
1 parent 64334ce commit 7d197f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exercise.tests/IntegrationTests/CohortTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ public async Task CreateCohort(string email, string password, string cohortName,
269269
[TestCase(TeacherEmail, TeacherPassword, 350, 1, 1, "User with Id 350 not found.", HttpStatusCode.BadRequest)]
270270
[TestCase(TeacherEmail, TeacherPassword, 1, 20, 1, "Cohort with Id 20 not found.", HttpStatusCode.BadRequest)]
271271
[TestCase(TeacherEmail, TeacherPassword, 1, 1, 10, "The specified course is not part of this cohort.", HttpStatusCode.BadRequest)]
272-
[TestCase(TeacherEmail, TeacherPassword, 11, 1, 1, "User is already in the specified course in the cohort.", HttpStatusCode.BadRequest)]
272+
[TestCase(TeacherEmail, TeacherPassword, TeacherId, 3, 3, "User is already in the specified course in the cohort.", HttpStatusCode.BadRequest)]
273273
[TestCase(StudentEmail1, StudentPassword1, 1, 3, 1, "You are not authorized to add a user to a cohort.", HttpStatusCode.Forbidden)]
274274
public async Task AddUserToCohortAndDeleteUser(
275275
string email,

0 commit comments

Comments
 (0)