fix tests

This commit is contained in:
root
2026-06-11 11:46:12 -04:00
parent c91fa2ce4d
commit 5ead80fdc7
1489 changed files with 11349 additions and 10305 deletions
@@ -2,13 +2,15 @@
namespace App\Services\Parents;
use App\Controllers\ParentReportCardController;
use App\Models\Student;
use App\Models\User;
use Illuminate\Support\Facades\DB;
/**
* Maps the logged-in parent-family account to the primary parent's user id
* (stored on {@see \App\Models\Student::$parent_id}), matching legacy
* {@see \App\Controllers\ParentReportCardController::resolvePrimaryParentId}.
* (stored on {@see Student::$parent_id}), matching legacy
* {@see ParentReportCardController::resolvePrimaryParentId}.
*/
final class PrimaryParentUserResolver
{
@@ -22,7 +24,7 @@ final class PrimaryParentUserResolver
}
/**
* @param int $userId Session user id (may be secondary/tertiary login).
* @param int $userId Session user id (may be secondary/tertiary login).
*/
public function resolveFromCredentials(int $userId, string $userType): ?int
{