Skip to content

Commit 200619a

Browse files
committed
Fix tests
1 parent 5015dba commit 200619a

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,6 @@ public function provideSingleNotFound(): Generator
377377
protected function provideAllowedUsers(): Generator
378378
{
379379
yield ['admin', ['admin']];
380-
yield ['team', ['api_problem_change']];
380+
yield ['team', [static::$testedRole]];
381381
}
382382
}

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

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

2526
private function parseSortYaml(string $yamlString): array
2627
{

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

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
class ProblemControllerAdminTest extends ProblemControllerTest
1212
{
1313
protected ?string $apiUser = 'admin';
14+
protected static string $testedRole = 'api_problem_change';
1415

1516
protected function setUp(): void
1617
{

0 commit comments

Comments
 (0)