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
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
You can’t perform that action at this time.
0 commit comments