login()->loginNami()->withoutExceptionHandling(); Subactivity::factory()->name('Pupu')->create(); $response = $this->get(route('activity.create')); $this->assertInertiaHas([ 'name' => '', 'is_filterable' => false, 'subactivities' => [], ], $response, 'data'); $this->assertInertiaHas([ 'id' => Subactivity::first()->id, 'name' => 'Pupu', ], $response, 'meta.subactivities.0'); } }