<?php

namespace Tests\Feature\Api\V1\Settings;

use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;

class PolicyControllerTest extends TestCase
{
    use RefreshDatabase;

    public function test_school_policy_endpoint_returns_payload(): void
    {
        $response = $this->getJson('/api/v1/policies/school');

        $response->assertOk();
        $response->assertJsonStructure(['data' => ['policy' => ['type', 'title', 'format', 'content', 'updated_at']]]);
    }

    public function test_picture_policy_endpoint_returns_payload(): void
    {
        $response = $this->getJson('/api/v1/policies/picture');

        $response->assertOk();
        $response->assertJsonStructure(['data' => ['policy' => ['type', 'title', 'format', 'content', 'updated_at']]]);
    }
}
