Tets for BonusScoreController
This commit is contained in:
parent
119b8228c3
commit
d09d053b6a
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
/** @noinspection PhpUnhandledExceptionInspection */
|
||||
|
||||
namespace App\Http\Controllers\Tabulation;
|
||||
|
||||
use App\Actions\Tabulation\EnterBonusScore;
|
||||
|
|
@ -9,6 +11,7 @@ use App\Http\Controllers\Controller;
|
|||
use App\Models\BonusScore;
|
||||
use App\Models\Entry;
|
||||
use App\Models\User;
|
||||
use Exception;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
use function request;
|
||||
|
|
@ -85,7 +88,7 @@ class BonusScoreController extends Controller
|
|||
|
||||
DB::commit();
|
||||
/* @codeCoverageIgnoreStart */
|
||||
} catch (\Exception) {
|
||||
} catch (Exception $ex) {
|
||||
DB::rollBack();
|
||||
|
||||
return redirect()->route('bonus-scores.entryBonusScoreSheet', ['entry_id' => $entry->id])->with('error', 'Error entering score - '.$ex->getMessage());
|
||||
|
|
|
|||
Loading…
Reference in New Issue