<?php

namespace Tests\Feature;

use App\Models\StudentProfile;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
use Tests\Traits\WithTestAuth;

class MyProfileTest extends TestCase
{
    use RefreshDatabase;
    use WithTestAuth;

    public function test_student_can_access_my_profile_page(): void
    {
        $user = $this->createStudentUser();

        StudentProfile::factory()->create([
            'user_id' => $user->id,
            'verification_status' => 'approved',
        ]);

        $this->actingAs($user)
            ->get('/student/my-profile')
            ->assertStatus(200);
    }
}
