<?php

namespace Tests\Unit\Models;

use App\Models\StudentMedicalCondition;
use PHPUnit\Framework\TestCase;

class StudentMedicalConditionTest extends TestCase
{
    public function test_model_metadata_is_converted(): void
    {
        $model = new StudentMedicalCondition();

        $this->assertSame('student_medical_conditions', $model->getTable());
        $this->assertSame('id', $model->getKeyName());
        $this->assertSame(false, $model->timestamps);
        $this->assertSame(["student_id", "condition_name"], $model->getFillable());
    }

    public function test_model_class_loads(): void
    {
        $this->assertInstanceOf(StudentMedicalCondition::class, new StudentMedicalCondition());
    }
}
