Files
alrahma_sunday_school_api/tests/Unit/Models/ClassPreparationLogTest.php
T
2026-06-11 11:46:12 -04:00

25 lines
735 B
PHP

<?php
namespace Tests\Unit\Models;
use App\Models\ClassPreparationLog;
use PHPUnit\Framework\TestCase;
class ClassPreparationLogTest extends TestCase
{
public function test_model_metadata_is_converted(): void
{
$model = new ClassPreparationLog;
$this->assertSame('class_preparation_log', $model->getTable());
$this->assertSame('id', $model->getKeyName());
$this->assertSame(false, $model->timestamps);
$this->assertSame(['class_section_id', 'class_section', 'school_year', 'prep_data', 'created_at'], $model->getFillable());
}
public function test_model_class_loads(): void
{
$this->assertInstanceOf(ClassPreparationLog::class, new ClassPreparationLog);
}
}