Files
2026-06-11 11:46:12 -04:00

25 lines
786 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);
}
}