withoutExceptionHandling(); $this->login()->loginNami(); Country::factory()->create(['name' => 'Deutschland']); $activity = Activity::factory()->hasAttached(Subactivity::factory()->name('Biber'))->name('€ Mitglied')->create(); $subactivity = $activity->subactivities->first(); $response = $this->get(route('member.create')); $this->assertInertiaHas('Biber', $response, "subactivities.{$activity->id}.{$subactivity->id}"); $this->assertInertiaHas('€ Mitglied', $response, "activities.{$activity->id}"); } }