<?php

namespace Tests\Feature\Api\Attendance;

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

class AdminAttendanceApiControllerTest extends TestCase
{
    use RefreshDatabase;

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

        $response = $this->getJson('/api/v1/attendance/admin/daily');

        $response->assertStatus(200);
    }
}
