<?php

namespace Tests\Security;

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

class AdminGuardTest extends TestCase
{
    use RefreshDatabase;

    public function test_admin_routes_require_admin(): void
    {
        $this->getJson('/api/opportunities')->assertStatus(403);
        $this->postJson('/api/admin/opportunities/push', ['ids' => []])->assertStatus(403);
    }
}

