add tests batch 20

This commit is contained in:
root
2026-06-09 01:03:53 -04:00
parent 95efb9652e
commit 6be4875c5e
1502 changed files with 13797 additions and 11313 deletions
+5 -3
View File
@@ -2,6 +2,8 @@
namespace App\Models;
use App\Models\BaseModel;
class ParentNotification extends BaseModel
{
protected $table = 'parent_notifications';
@@ -23,7 +25,7 @@ class ParentNotification extends BaseModel
];
protected $casts = [
'student_id' => 'integer',
'student_id' => 'integer',
// incident_date is stored as Y-m-d in legacy usage
'incident_date' => 'date',
];
@@ -50,7 +52,7 @@ class ParentNotification extends BaseModel
->whereDate('incident_date', $incidentYmd)
->where('channel', $channel);
if (! empty($to)) {
if (!empty($to)) {
$q->where('to_address', $to);
}
@@ -58,4 +60,4 @@ class ParentNotification extends BaseModel
return $row && (($row->status ?? '') === 'sent');
}
}
}