Files
alrahma_sunday_school_api/tests/Unit/Models/ClassPrepAdjustmentTest.php
T
2026-06-09 00:03:03 -04:00

25 lines
747 B
PHP

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