login()->loginNami()->withoutExceptionHandling(); $group = Group::factory()->for(Group::first(), 'parent')->create(['inner_name' => 'Gruppe', 'level' => Level::REGION]); $this->postJson(route('group.bulkstore'), [ ['id' => $group->id, 'inner_name' => 'Abc', 'level' => Level::FEDERATION->value] ])->assertOk(); $this->assertDatabaseHas('groups', [ 'id' => $group->id, 'inner_name' => 'Abc', 'level' => 'Diƶzese', ]); } }