Skip to content

Commit 7f87cc0

Browse files
committed
Fixup
1 parent a015327 commit 7f87cc0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
class ContestControllerAdminTest extends ContestControllerTest
2222
{
2323
protected ?string $apiUser = 'admin';
24-
protected static string $testedRole = 'api_problem_change';
24+
protected static string $testedRole = 'api_contest_change';
2525

2626
private function parseSortYaml(string $yamlString): array
2727
{
@@ -323,7 +323,7 @@ public function provideChangeTimes(): Generator
323323
yield [['id' => 1, 'scoreboard_thaw_time' => '+15 seconds', 'force' => true], 204, null, [DemoPostUnfreezeContestFixture::class], false, true];
324324
yield [['id' => 1, 'scoreboard_thaw_time' => '+15 seconds'], 204, null, [], false, true];
325325
yield [['id' => 1, 'scoreboard_thaw_time' => '-15 seconds'], 200, 'Demo contest', [], true, true];
326-
326+
327327
// Show that this works for both roles
328328
yield [['id' => 1, 'scoreboard_thaw_time' => '-14 seconds'], 200, 'Demo contest', [], true, true, ['admin']];
329329
yield [['id' => 1, 'scoreboard_thaw_time' => '-13 seconds'], 200, 'Demo contest', [], true, true, ['api_contest_change']];

0 commit comments

Comments
 (0)