Skip to content

Commit 47efe69

Browse files
committed
Update tests
Don't exactly check for each property as that's just silly repeating of lists.
1 parent f0c3645 commit 47efe69

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

webapp/tests/Unit/Controller/API/AccessControllerTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,12 @@ public function testAccessAsAdmin(): void
3636
'groups' => ['id', 'icpc_id', 'name', 'hidden'],
3737
'organizations' => ['id', 'icpc_id', 'name', 'formal_name', 'country', 'country_flag'],
3838
'teams' => ['id', 'icpc_id', 'name', 'display_name', 'organization_id', 'group_ids'],
39+
'accounts' => ['id', 'username', 'name', 'type'],
3940
'state' => ['started', 'frozen', 'ended', 'thawed', 'finalized', 'end_of_updates'],
4041
'submissions' => ['id', 'language_id', 'problem_id', 'team_id', 'time', 'contest_time', 'entry_point', 'files'],
4142
'judgements' => ['id', 'submission_id', 'judgement_type_id', 'start_time', 'start_contest_time', 'end_time', 'end_contest_time', 'max_run_time'],
4243
'runs' => ['id', 'judgement_id', 'ordinal', 'judgement_type_id', 'time', 'contest_time', 'run_time'],
44+
'clarifications' => ['id', 'from_team_id', 'problem_id', 'text', 'time', 'contest_time'],
4345
'awards' => ['id', 'citation', 'team_ids'],
4446
];
4547

@@ -54,7 +56,9 @@ public function testAccessAsAdmin(): void
5456
break;
5557
}
5658
}
57-
self::assertSame($expectedProperties, $actualProperties);
59+
foreach ($expectedProperties as $property) {
60+
self::assertContains($property, $actualProperties);
61+
}
5862
}
5963
}
6064
}

0 commit comments

Comments
 (0)