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