Files
alrahma_sunday_school_api/tests/Unit/Models/ClassProgressReportTest.php
T
2026-06-11 11:46:12 -04:00

25 lines
929 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);
}
}