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
+11 -11
View File
@@ -3,6 +3,7 @@
namespace App\Models;
use Illuminate\Database\Eloquent\Builder;
use App\Models\BaseModel;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class PromotionQueue extends BaseModel
@@ -21,17 +22,16 @@ class PromotionQueue extends BaseModel
'updated_at',
'updated_by',
];
public $timestamps = true;
protected $casts = [
'student_id' => 'integer',
'from_class_section_id' => 'integer',
'to_class_id' => 'integer',
'to_class_section_id' => 'integer',
'updated_by' => 'integer',
'created_at' => 'datetime',
'updated_at' => 'datetime',
'student_id' => 'integer',
'from_class_section_id' => 'integer',
'to_class_id' => 'integer',
'to_class_section_id' => 'integer',
'updated_by' => 'integer',
'created_at' => 'datetime',
'updated_at' => 'datetime',
];
/* ============================================================
@@ -92,9 +92,9 @@ class PromotionQueue extends BaseModel
public static function upsertQueue(array $data): ?self
{
$studentId = isset($data['student_id']) ? (int) $data['student_id'] : null;
$yearTo = isset($data['school_year_to']) ? (string) $data['school_year_to'] : null;
$yearTo = isset($data['school_year_to']) ? (string) $data['school_year_to'] : null;
if (! $studentId || ! $yearTo) {
if (!$studentId || !$yearTo) {
return null;
}
@@ -114,4 +114,4 @@ class PromotionQueue extends BaseModel
{
return (bool) static::upsertQueue($data);
}
}
}