File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
webapp/tests/Unit/Controller/API Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -33,13 +33,15 @@ public function testInfoReturnsVariables(): void
33
33
$ response = $ this ->verifyApiJsonResponse ('GET ' , $ endpoint , 200 );
34
34
35
35
static ::assertIsArray ($ response );
36
- static ::assertCount (4 , $ response );
36
+ static ::assertCount (5 , $ response );
37
37
static ::assertEquals (GeneralInfoController::CCS_SPEC_API_VERSION , $ response ['version ' ]);
38
38
static ::assertEquals (GeneralInfoController::CCS_SPEC_API_URL , $ response ['version_url ' ]);
39
39
static ::assertEquals ('DOMjudge ' , $ response ['name ' ]);
40
40
static ::assertMatchesRegularExpression ('/^\d+\.\d+\.\d+/ ' , $ response ['domjudge ' ]['version ' ]);
41
41
static ::assertEquals ('test ' , $ response ['domjudge ' ]['environment ' ]);
42
42
static ::assertStringStartsWith ('http ' , $ response ['domjudge ' ]['doc_url ' ]);
43
+ static ::assertMatchesRegularExpression ('/^\d+\.\d+\.\d+/ ' , $ response ['provider ' ]['version ' ]);
44
+ static ::assertEquals ('DOMjudge ' , $ response ['provider ' ]['name ' ]);
43
45
}
44
46
}
45
47
You can’t perform that action at this time.
0 commit comments