<?php

namespace Tests\Tenant;

use App\Http\Resources\VehicleAction\FinanceFactory;
use Mtc\MercuryDataModels\Vehicle;
use Tests\TenantTestCase;

class FinanceFactoryHideCalculatorTest extends TenantTestCase
{
    public function testWidgetReturnsNullWhenHideFinanceCalculatorIsTrue()
    {
        $vehicle = Vehicle::factory()->create([
            'hide_finance_calculator' => true,
        ]);

        $result = (new FinanceFactory())->widget($vehicle);

        $this->assertNull($result);
    }
}
