<?php

namespace Tests\Unit\Resources\Frontend;

use App\Http\Resources\Frontend\FrontendPageResource;
use Tests\TestCase;

class FrontendPageResourceTest extends TestCase
{
    public function test_resource_returns_page(): void
    {
        $resource = new FrontendPageResource(['page' => 'index']);
        $payload = $resource->toArray(request());

        $this->assertSame('index', $payload['page']);
    }
}
