Files
2026-03-05 12:29:37 -05:00

25 lines
933 B
PHP

<?php
namespace Tests\Unit\Models;
use App\Models\ClassProgressReport;
use PHPUnit\Framework\TestCase;
class ClassProgressReportTest extends TestCase
{
public function test_model_metadata_is_converted(): void
{
$model = new ClassProgressReport();
$this->assertSame('class_progress_reports', $model->getTable());
$this->assertSame('id', $model->getKeyName());
$this->assertSame(true, $model->timestamps);
$this->assertSame(["class_section_id", "teacher_id", "week_start", "week_end", "subject", "unit_title", "materials", "covered", "homework", "assessment", "status", "status_notes", "class_notes", "next_week_plan", "support_needed", "flags_json", "attachment_path", "created_at", "updated_at"], $model->getFillable());
}
public function test_model_class_loads(): void
{
$this->assertInstanceOf(ClassProgressReport::class, new ClassProgressReport());
}
}