<?php

namespace Tests\Concerns;

use App\Models\Configuration;

trait SeedsAdministratorApiConfig
{
    protected function seedAdministratorApiConfig(
        string $schoolYear = '2025-2026',
        string $semester = 'Fall'
    ): void {
        Configuration::unguard();

        Configuration::query()->updateOrCreate(
            ['config_key' => 'school_year'],
            ['config_value' => $schoolYear]
        );

        Configuration::query()->updateOrCreate(
            ['config_key' => 'semester'],
            ['config_value' => $semester]
        );
    }
}