|
21 | 21 | class ContestControllerAdminTest extends ContestControllerTest
|
22 | 22 | {
|
23 | 23 | protected ?string $apiUser = 'admin';
|
24 | | - protected static string $testedRole = 'api_problem_change'; |
| 24 | + protected static string $testedRole = 'api_contest_change'; |
25 | 25 |
|
26 | 26 | private function parseSortYaml(string $yamlString): array
|
27 | 27 | {
|
@@ -323,7 +323,7 @@ public function provideChangeTimes(): Generator
|
323 | 323 | yield [['id' => 1, 'scoreboard_thaw_time' => '+15 seconds', 'force' => true], 204, null, [DemoPostUnfreezeContestFixture::class], false, true];
|
324 | 324 | yield [['id' => 1, 'scoreboard_thaw_time' => '+15 seconds'], 204, null, [], false, true];
|
325 | 325 | yield [['id' => 1, 'scoreboard_thaw_time' => '-15 seconds'], 200, 'Demo contest', [], true, true];
|
326 | | - |
| 326 | + |
327 | 327 | // Show that this works for both roles
|
328 | 328 | yield [['id' => 1, 'scoreboard_thaw_time' => '-14 seconds'], 200, 'Demo contest', [], true, true, ['admin']];
|
329 | 329 | yield [['id' => 1, 'scoreboard_thaw_time' => '-13 seconds'], 200, 'Demo contest', [], true, true, ['api_contest_change']];
|
|
0 commit comments