Merge remote-tracking branch 'origin/develop'

This commit is contained in:
snipe 2023-10-26 17:57:17 +01:00
commit 98423e4dd9
2 changed files with 0 additions and 17 deletions

View file

@ -105,13 +105,4 @@ class CustomFieldFactory extends Factory
}); });
} }
public function testRequired()
{
return $this->state(function () {
return [
'name' => 'Test Required',
'help_text' => 'This is a sample required field.',
];
});
}
} }

View file

@ -35,7 +35,6 @@ class CustomFieldSeeder extends Seeder
CustomField::factory()->count(1)->macAddress()->create(); CustomField::factory()->count(1)->macAddress()->create();
CustomField::factory()->count(1)->testEncrypted()->create(); CustomField::factory()->count(1)->testEncrypted()->create();
CustomField::factory()->count(1)->testCheckbox()->create(); CustomField::factory()->count(1)->testCheckbox()->create();
CustomField::factory()->count(1)->testRequired()->create();
DB::table('custom_field_custom_fieldset')->insert([ DB::table('custom_field_custom_fieldset')->insert([
@ -97,13 +96,6 @@ class CustomFieldSeeder extends Seeder
'required' => 0, 'required' => 0,
], ],
[
'custom_field_id' => '8',
'custom_fieldset_id' => '1',
'order' => 0,
'required' => 1,
],
]); ]);
} }
} }