Automated PR provided by Codex via Gitea API. Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de> Reviewed-on: #481
34 lines
1014 B
PHP
34 lines
1014 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\TenantConfigurationSupportedScope;
|
|
use App\Support\TenantConfiguration\CoverageLevel;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends Factory<TenantConfigurationSupportedScope>
|
|
*/
|
|
class TenantConfigurationSupportedScopeFactory extends Factory
|
|
{
|
|
protected $model = TenantConfigurationSupportedScope::class;
|
|
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'scope_key' => fake()->unique()->slug(),
|
|
'display_name' => fake()->words(3, true),
|
|
'description' => fake()->sentence(),
|
|
'minimum_coverage_level' => CoverageLevel::ContentBacked->value,
|
|
'included_resource_types' => [],
|
|
'allow_beta' => false,
|
|
'allow_graph_fallback' => false,
|
|
'customer_claims_allowed' => false,
|
|
'is_active' => true,
|
|
'metadata' => ['factory' => 'tenant_configuration_supported_scope'],
|
|
];
|
|
}
|
|
}
|