{
UserTicket enrollment = loadEnrollment(TestDataProvider.ATTENDANCE_PRESENT_USER_ID, TestDataProvider.DEFAULT_EVENT_TICKET_ID);
Assert.assertEquals(AttendanceStatus.PRESENT, enrollment.getAttendanceStatus());
}
ActionProxy proxy = getActionProxy(POST, API_EVENT_ATTEND_URL);
loginAs(proxy, TestDataProvider.EVENT_OWNER_ID);
addFormParameter(proxy, "userId", TestDataProvider.ATTENDANCE_PRESENT_USER_ID);
addFormParameter(proxy, "ticketId", TestDataProvider.DEFAULT_EVENT_TICKET_ID.toString());
addFormParameter(proxy, "status", "unknown");
addValidSessionTokenToParameter(proxy);
proxy.execute();
assertResultOK(proxy);
// Check status is changed.
{
UserTicket enrollment = loadEnrollment(TestDataProvider.ATTENDANCE_PRESENT_USER_ID, TestDataProvider.DEFAULT_EVENT_TICKET_ID);