From 7a54c15852be3784188eaa32b9bf16c463c5cdd8 Mon Sep 17 00:00:00 2001 From: Francesco Picone Date: Tue, 20 Oct 2026 10:56:23 +0200 Subject: [PATCH] ++ test: profilo dell'amministratore in una sessione nuova Co-Authored-By: Claude Opus 5.5 --- tests/Feature/GruppiServizioTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/Feature/GruppiServizioTest.php b/tests/Feature/GruppiServizioTest.php index 8ee8a6a..2f184c1 100644 --- a/tests/Feature/GruppiServizioTest.php +++ b/tests/Feature/GruppiServizioTest.php @@ -483,7 +483,9 @@ class GruppiServizioTest extends TestCase ->assertSeeInOrder(['Zisa', 'Membri', '3', 'Nel pacchetto', '3', 'Da dare', '2', 'Dati ai membri', '1']) ->assertSee('Torna al mio gruppo'); - // L'amministratore un gruppo suo non ce l'ha. + // L'amministratore un gruppo suo non ce l'ha (sessione nuova: รจ un + // altro utente). + $this->flushSession(); $this->actingAs($this->admin)->get(route('profile'))->assertOk() ->assertDontSee('Il tuo gruppo di servizio') ->assertSee('Torna alla home');