diff --git a/tests/Feature/Member/CreateTest.php b/tests/Feature/Member/CreateTest.php new file mode 100644 index 00000000..f11a81b1 --- /dev/null +++ b/tests/Feature/Member/CreateTest.php @@ -0,0 +1,28 @@ +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}"); + } +}