buckets/tests/Enum/RemainingEnumsTest.php
2026-06-18 21:25:39 +02:00

36 lines
1.4 KiB
PHP

<?php
namespace App\Tests\Enum;
use App\Enum\BucketAllocationType;
use App\Enum\DistributionMode;
use App\Enum\StreamFrequency;
use App\Enum\StreamType;
use PHPUnit\Framework\TestCase;
final class RemainingEnumsTest extends TestCase
{
public function testRemainingEnumsExposeExpectedCases(): void
{
$this->assertSame('once', StreamFrequency::ONCE->value);
$this->assertSame('daily', StreamFrequency::DAILY->value);
$this->assertSame('weekly', StreamFrequency::WEEKLY->value);
$this->assertSame('biweekly', StreamFrequency::BIWEEKLY->value);
$this->assertSame('monthly', StreamFrequency::MONTHLY->value);
$this->assertSame('quarterly', StreamFrequency::QUARTERLY->value);
$this->assertSame('yearly', StreamFrequency::YEARLY->value);
$this->assertSame('income', StreamType::INCOME->value);
$this->assertSame('expense', StreamType::EXPENSE->value);
$this->assertSame('even', DistributionMode::EVEN->value);
$this->assertSame('priority', DistributionMode::PRIORITY->value);
}
public function testBucketAllocationTypeBackingValues(): void
{
$this->assertSame('fixed_limit', BucketAllocationType::FIXED_LIMIT->value);
$this->assertSame('percentage', BucketAllocationType::PERCENTAGE->value);
$this->assertSame('unlimited', BucketAllocationType::UNLIMITED->value);
}
}