create(); Sanctum::actingAs($user); $response = $this->postJson('/api/v1/auth/logout'); $response->assertOk() ->assertJson(['success' => true]); } public function test_unauthenticated_user_cannot_logout(): void { $response = $this->postJson('/api/v1/auth/logout'); $response->assertUnauthorized(); } }