<?php

namespace Tests\Unit\Models;

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

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

        $this->assertSame('login_activity', $model->getTable());
        $this->assertSame('id', $model->getKeyName());
        $this->assertSame(true, $model->timestamps);
        $this->assertSame(["user_id", "email", "login_time", "logout_time", "ip_address", "user_agent", "created_at", "updated_at", "semester", "school_year"], $model->getFillable());
    }

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