<?php

namespace Tests\Unit;

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

class InvoiceModelTest extends TestCase
{
    public function testAccessTokenIsAnAllowedInvoiceField(): void
    {
        $reflection = new \ReflectionClass(InvoiceModel::class);
        $defaults = $reflection->getDefaultProperties();

        $this->assertContains('access_token', $defaults['allowedFields']);
    }
}
