Skip to content

Commit 460ebd5

Browse files
Fix test for general info API.
1 parent 36fa54b commit 460ebd5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,15 @@ public function testInfoReturnsVariables(): void
3333
$response = $this->verifyApiJsonResponse('GET', $endpoint, 200);
3434

3535
static::assertIsArray($response);
36-
static::assertCount(4, $response);
36+
static::assertCount(5, $response);
3737
static::assertEquals(GeneralInfoController::CCS_SPEC_API_VERSION, $response['version']);
3838
static::assertEquals(GeneralInfoController::CCS_SPEC_API_URL, $response['version_url']);
3939
static::assertEquals('DOMjudge', $response['name']);
4040
static::assertMatchesRegularExpression('/^\d+\.\d+\.\d+/', $response['domjudge']['version']);
4141
static::assertEquals('test', $response['domjudge']['environment']);
4242
static::assertStringStartsWith('http', $response['domjudge']['doc_url']);
43+
static::assertMatchesRegularExpression('/^\d+\.\d+\.\d+/', $response['provider']['version']);
44+
static::assertEquals('DOMjudge', $response['provider']['name']);
4345
}
4446
}
4547

0 commit comments

Comments
 (0)