<?php

namespace Tests\Unit\Models;

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

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

        $this->assertSame('print_requests', $model->getTable());
        $this->assertSame('id', $model->getKeyName());
        $this->assertSame(true, $model->timestamps);
        $this->assertSame(["teacher_id", "admin_id", "class_id", "file_path", "page_selection", "num_copies", "required_by", "pickup_method", "status", "created_at", "updated_at"], $model->getFillable());
    }

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