<?php

test('login route exists', function () {
    $response = $this->get('/login');

    $response->assertStatus(200);
});

test('api login route exists', function () {
    $response = $this->postJson('/api/v1/login', []);

    $response->assertStatus(422); // Validation error, but route exists
});

test('dashboard requires authentication', function () {
    $response = $this->get('/dashboard');

    $response->assertRedirect('/login');
});
