<?php

namespace Tests\Unit\Models;

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

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

        $this->assertSame('class_prep_adjustments', $model->getTable());
        $this->assertSame('id', $model->getKeyName());
        $this->assertSame(false, $model->timestamps);
        $this->assertSame(["class_section_id", "item_name", "adjustment", "adjustable", "school_year", "created_at"], $model->getFillable());
    }

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