withoutExceptionHandling(); $this->login()->loginNami(); Country::factory()->create(['name' => 'Deutschland']); } public function testItDisplaysCreatePage(): void { $this->get(route('member.create')) ->assertInertiaPath('meta.default.address', ''); } public function testItDoesntDisplayActivitiesAndSubactivitiesNotInNami(): void { Activity::factory()->hasAttached(Subactivity::factory()->name('Biber'))->name('€ Mitglied')->create(); $response = $this->get(route('member.create')); $this->assertCount(0, $this->inertia($response, 'meta.formCreateSubactivities')); $this->assertCount(0, $this->inertia($response, 'meta.formCreateActivities')); } }