<?php

namespace Tests\Feature\Api\Attendance;

use App\Models\User;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Laravel\Sanctum\Sanctum;
use Tests\TestCase;

class StaffAttendanceApiControllerTest extends TestCase
{
    use RefreshDatabase;

    public function test_month_data_returns_success(): void
    {
        $user = User::factory()->create();
        Sanctum::actingAs($user);

        $response = $this->getJson('/api/v1/attendance/staff/month');

        $response->assertStatus(200);
    }

    public function test_admins_data_returns_success(): void
    {
        $user = User::factory()->create();
        Sanctum::actingAs($user);

        $response = $this->getJson('/api/v1/attendance/staff/admins');

        $response->assertStatus(200);
    }
}
