25 lines
851 B
PHP
25 lines
851 B
PHP
<?php
|
|
|
|
namespace Tests\Unit\Models;
|
|
|
|
use App\Models\ParentAttendanceReport;
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
class ParentAttendanceReportTest extends TestCase
|
|
{
|
|
public function test_model_metadata_is_converted(): void
|
|
{
|
|
$model = new ParentAttendanceReport;
|
|
|
|
$this->assertSame('parent_attendance_reports', $model->getTable());
|
|
$this->assertSame('id', $model->getKeyName());
|
|
$this->assertSame(true, $model->timestamps);
|
|
$this->assertSame(['parent_id', 'student_id', 'class_section_id', 'report_date', 'type', 'arrival_time', 'dismiss_time', 'reason', 'semester', 'school_year', 'status', 'created_at', 'updated_at'], $model->getFillable());
|
|
}
|
|
|
|
public function test_model_class_loads(): void
|
|
{
|
|
$this->assertInstanceOf(ParentAttendanceReport::class, new ParentAttendanceReport);
|
|
}
|
|
}
|