<?php

namespace Tests\Unit\Resources\Messaging;

use App\Http\Resources\Messaging\RecipientResource;
use Tests\TestCase;

class RecipientResourceTest extends TestCase
{
    public function test_resource_returns_expected_shape(): void
    {
        $resource = new RecipientResource(['id' => 5, 'name' => 'Test User']);
        $payload = $resource->toArray(request());

        $this->assertSame(5, $payload['id']);
        $this->assertSame('Test User', $payload['name']);
    }
}
