<?php

declare(strict_types=1);

namespace App\Tests\Unit\Administration\Domain\Model\HomeworkRules;

use App\Administration\Domain\Model\HomeworkRules\RuleType;
use PHPUnit\Framework\Attributes\Test;
use PHPUnit\Framework\TestCase;

final class RuleTypeTest extends TestCase
{
    #[Test]
    public function minimumDelayRequiresParams(): void
    {
        self::assertSame(['days'], RuleType::MINIMUM_DELAY->requiredParams());
    }

    #[Test]
    public function noMondayAfterRequiresParams(): void
    {
        self::assertSame(['day', 'time'], RuleType::NO_MONDAY_AFTER->requiredParams());
    }

    #[Test]
    public function labelsAreFrench(): void
    {
        self::assertSame('Délai minimum avant échéance', RuleType::MINIMUM_DELAY->label());
        self::assertSame('Pas de devoir pour lundi après un horaire', RuleType::NO_MONDAY_AFTER->label());
    }
}
