<?php

namespace Tests\Unit\Models;

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

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

        $this->assertSame('class_preparation_log', $model->getTable());
        $this->assertSame('id', $model->getKeyName());
        $this->assertSame(false, $model->timestamps);
        $this->assertSame(["class_section_id", "class_section", "school_year", "prep_data", "created_at"], $model->getFillable());
    }

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