<?php

namespace Tests\Unit\Resources\Support;

use App\Http\Resources\Support\ContactMessageResource;
use Tests\TestCase;

class ContactMessageResourceTest extends TestCase
{
    public function test_resource_returns_expected_shape(): void
    {
        $resource = new ContactMessageResource([
            'email_sent' => true,
            'recipient' => 'support@example.com',
        ]);

        $payload = $resource->toArray(request());

        $this->assertTrue($payload['email_sent']);
        $this->assertSame('support@example.com', $payload['recipient']);
    }
}
