<?php
namespace Tests\Feature;use App\Models\User;use Illuminate\Foundation\Testing\RefreshDatabase;use Tests\TestCase;
class AuthTest extends TestCase {use RefreshDatabase;public function test_user_can_login():void{$u=User::factory()->create(['password'=>'password12345']);$this->postJson('/api/v1/auth/login',['email'=>$u->email,'password'=>'password12345','device_name'=>'phpunit'])->assertOk()->assertJsonStructure(['data'=>['token','user']]);}}
