25 lines
737 B
PHP
25 lines
737 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);
|
|
}
|
|
}
|