login()->loginNami(); $participant = Participant::factory()->for(Form::factory())->create(); $member = Member::factory()->defaults()->create(); $this->postJson(route('participant.assign', ['participant' => $participant]), ['member_id' => $member->id])->assertOk(); $this->assertEquals($member->id, $participant->fresh()->member_id); } }