<?php

namespace Tests\Unit\Models;

use App\Models\ManualPayment;
use PHPUnit\Framework\TestCase;

class ManualPaymentTest extends TestCase
{
    public function test_model_metadata_is_converted(): void
    {
        $model = new ManualPayment();

        $this->assertSame('manual_payments', $model->getTable());
        $this->assertSame('id', $model->getKeyName());
        $this->assertSame(false, $model->timestamps);
        $this->assertSame(["invoice_number", "amount", "payment_method", "reference", "discount_number", "proof_path", "created_at", "school_year", "semester"], $model->getFillable());
    }

    public function test_model_class_loads(): void
    {
        $this->assertInstanceOf(ManualPayment::class, new ManualPayment());
    }
}
