<?php

namespace Tests\Unit\Models;

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

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

        $this->assertSame('role_nav_items', $model->getTable());
        $this->assertSame('id', $model->getKeyName());
        $this->assertSame(true, $model->timestamps);
        $this->assertSame(["role_id", "nav_item_id", "created_at", "updated_at"], $model->getFillable());
    }

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