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

25 lines
790 B
PHP

<?php
namespace Tests\Unit\Models;
use App\Models\PaymentError;
use PHPUnit\Framework\TestCase;
class PaymentErrorTest extends TestCase
{
public function test_model_metadata_is_converted(): void
{
$model = new PaymentError();
$this->assertSame('payment_error', $model->getTable());
$this->assertSame('id', $model->getKeyName());
$this->assertSame(false, $model->timestamps);
$this->assertSame(["payment_id", "invoice_id", "parent_id", "wrong_paid_amount", "wrong_payment_method", "wrong_check_file", "error_note", "logged_at", "logged_by", "school_year", "semester"], $model->getFillable());
}
public function test_model_class_loads(): void
{
$this->assertInstanceOf(PaymentError::class, new PaymentError());
}
}