Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Lines changed: 2 additions & 2 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /