login()->loginNami()->withoutExceptionHandling(); $form = Form::factory() ->has(Participant::factory()) ->sections([]) ->create(); $this->deleteJson(route('participant.destroy', ['participant' => $form->participants->first()])) ->assertOk(); $this->assertDatabaseCount('participants', 0); } }