Tets for BonusScoreController

This commit is contained in:
Matt Young 2025-07-15 10:18:43 -05:00
parent 0af15bf753
commit 119b8228c3
1 changed files with 4 additions and 5 deletions

View File

@ -73,26 +73,25 @@ class BonusScoreController extends Controller
// Set the new score
try {
$saveBonusScore($judge, $entry, $validData['score']);
} catch (AuditionAdminException $ex) {
DB::rollBack();
return redirect()->route('bonus-scores.entryBonusScoreSheet',
['entry_id' => $entry->id])->with('error', 'Error entering score - '.$ex->getMessage());
}
}
DB::commit();
/* @codeCoverageIgnoreStart */
} catch (\Exception) {
DB::rollBack();
return redirect()->route('bonus-scores.entryBonusScoreSheet', ['entry_id' => $entry->id])->with('error', 'Error entering score - '.$ex->getMessage());
}
/* @codeCoverageIgnoreEnd */
return redirect()->route('bonus-scores.entryBonusScoreSheet', ['entry_id' => $entry->id])->with('success', 'New bonus score entered');
}
public function destroyBonusScore()
{
}
}