<?php

namespace Tests\Unit\Models;

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

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

        $this->assertSame('score_comments', $model->getTable());
        $this->assertSame('id', $model->getKeyName());
        $this->assertSame(false, $model->timestamps);
        $this->assertSame(["student_id", "class_section_id", "score_type", "semester", "school_year", "comment", "comment_review", "reviewed_by", "commented_by", "created_at"], $model->getFillable());
    }

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