Rewrite tabulation #14
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
/** @noinspection PhpUnhandledExceptionInspection */
|
/** @noinspection PhpUnhandledExceptionInspection */
|
||||||
|
|
||||||
namespace App\Actions;
|
namespace App\Actions\Tabulation;
|
||||||
|
|
||||||
use App\Exceptions\TabulationException;
|
use App\Exceptions\TabulationException;
|
||||||
use App\Models\Entry;
|
use App\Models\Entry;
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
/** @noinspection PhpMissingReturnTypeInspection */
|
/** @noinspection PhpMissingReturnTypeInspection */
|
||||||
|
|
||||||
namespace App\Actions;
|
namespace App\Actions\Tabulation;
|
||||||
|
|
||||||
use App\Exceptions\ScoreEntryException;
|
use App\Exceptions\ScoreEntryException;
|
||||||
use App\Models\Entry;
|
use App\Models\Entry;
|
||||||
|
|
@ -21,11 +21,4 @@ class ScoreService
|
||||||
|
|
||||||
return $requiredJudges === $scoreSheets;
|
return $requiredJudges === $scoreSheets;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function scoreSheetTotal(string $mode, User $judge, Entry $entry): float
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
use App\Actions\EnterScore;
|
use App\Actions\Tabulation\EnterScore;
|
||||||
use App\Exceptions\ScoreEntryException;
|
use App\Exceptions\ScoreEntryException;
|
||||||
use App\Models\Entry;
|
use App\Models\Entry;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
/** @noinspection PhpUnhandledExceptionInspection */
|
/** @noinspection PhpUnhandledExceptionInspection */
|
||||||
|
|
||||||
use App\Actions\CalculateScoreSheetTotal;
|
use App\Actions\Tabulation\CalculateScoreSheetTotal;
|
||||||
use App\Exceptions\TabulationException;
|
use App\Exceptions\TabulationException;
|
||||||
use App\Models\Entry;
|
use App\Models\Entry;
|
||||||
use App\Models\Room;
|
use App\Models\Room;
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
/** @noinspection PhpUnhandledExceptionInspection */
|
/** @noinspection PhpUnhandledExceptionInspection */
|
||||||
|
|
||||||
use App\Actions\EnterScore;
|
use App\Actions\Tabulation\EnterScore;
|
||||||
use App\Exceptions\ScoreEntryException;
|
use App\Exceptions\ScoreEntryException;
|
||||||
use App\Models\Entry;
|
use App\Models\Entry;
|
||||||
use App\Models\Room;
|
use App\Models\Room;
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@ it('has appropriate students in JS array for select', function () {
|
||||||
'id: ',
|
'id: ',
|
||||||
$student->id,
|
$student->id,
|
||||||
'name: ',
|
'name: ',
|
||||||
$student->full_name(true),
|
e($student->full_name(true)),
|
||||||
], false); // The false parameter makes the assertion case-sensitive and allows for HTML tags
|
], false); // The false parameter makes the assertion case-sensitive and allows for HTML tags
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,6 @@ use App\Models\ScoreSheet;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use App\Services\ScoreService;
|
use App\Services\ScoreService;
|
||||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||||
use function Pest\Laravel\artisan;
|
|
||||||
|
|
||||||
uses(RefreshDatabase::class);
|
uses(RefreshDatabase::class);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue