Files
2026-03-05 12:29:37 -05:00

25 lines
741 B
PHP

<?php
namespace Tests\Unit\Models;
use App\Models\LateSlipLog;
use PHPUnit\Framework\TestCase;
class LateSlipLogTest extends TestCase
{
public function test_model_metadata_is_converted(): void
{
$model = new LateSlipLog();
$this->assertSame('late_slip_logs', $model->getTable());
$this->assertSame('id', $model->getKeyName());
$this->assertSame(false, $model->timestamps);
$this->assertSame(["school_year", "semester", "student_name", "slip_date", "time_in", "grade", "reason", "admin_name", "printed_by", "printed_at"], $model->getFillable());
}
public function test_model_class_loads(): void
{
$this->assertInstanceOf(LateSlipLog::class, new LateSlipLog());
}
}