Files
alrahma_sunday_school_api/tests/Unit/Models/PaymentNotificationLogTest.php
T
2026-06-09 01:25:14 -04:00

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