create([ 'firstname' => 'John', 'lastname' => 'Doe', 'email' => 'john@example.com', 'cellphone' => '5555555555', 'address_street' => '123 Main', 'city' => 'City', 'state' => 'ST', 'zip' => '12345', 'accept_school_policy' => 1, 'status' => 'Active', 'password' => bcrypt('secret'), 'semester' => 'Fall', 'school_year' => '2025-2026', ]); $this->actingAs($user, 'api'); Sanctum::actingAs($user); $response = $this->getJson('/api/v1/info-icon/profile'); $response->assertOk(); $response->assertJsonPath('data.profile.user_initials', 'JD'); } }