diff --git a/webapp/tests/Unit/Service/ConfigurationServiceTest.php b/webapp/tests/Unit/Service/ConfigurationServiceTest.php index 97f02ec6bb..c0b2de5cef 100644 --- a/webapp/tests/Unit/Service/ConfigurationServiceTest.php +++ b/webapp/tests/Unit/Service/ConfigurationServiceTest.php @@ -332,8 +332,7 @@ public function provideAddOptionsExecutables(): Generator public function testAddOptionsResults(string $item): void { $verdictOptions = ['' => '']; - $verdictsConfig = self::getContainer()->getParameter('domjudge.etcdir') . '/verdicts.php'; - $verdicts = include $verdictsConfig; + $verdicts = $this->config->getVerdicts(['final']); foreach (array_keys($verdicts) as $verdict) { $verdictOptions[$verdict] = $verdict; }