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

25 lines
895 B
PHP

<?php
namespace Tests\Unit\Models;
use App\Models\PaymentNotificationLog;
use PHPUnit\Framework\TestCase;
class PaymentNotificationLogTest extends TestCase
{
public function test_model_metadata_is_converted(): void
{
$model = new PaymentNotificationLog();
$this->assertSame('payment_notification_logs', $model->getTable());
$this->assertSame('id', $model->getKeyName());
$this->assertSame(false, $model->timestamps);
$this->assertSame(["parent_id", "invoice_id", "school_year", "period_year", "period_month", "type", "to_email", "cc_email", "head_fa_notified", "subject", "body", "status", "error_message", "balance_snapshot", "created_at", "sent_at"], $model->getFillable());
}
public function test_model_class_loads(): void
{
$this->assertInstanceOf(PaymentNotificationLog::class, new PaymentNotificationLog());
}
}