23 lines
551 B
PHP
23 lines
551 B
PHP
<?php
|
|
|
|
namespace Tests\Feature\Release;
|
|
|
|
use App\Support\Release\FeatureFlagRegistry;
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
final class FeatureFlagRolloutMapTest extends TestCase
|
|
{
|
|
public function test_high_risk_flags_have_owners_and_safe_defaults(): void
|
|
{
|
|
$registry = new FeatureFlagRegistry();
|
|
$flags = $registry->export();
|
|
|
|
$this->assertNotEmpty($flags);
|
|
|
|
foreach ($flags as $flag) {
|
|
$this->assertNotSame('', $flag['owner']);
|
|
$this->assertArrayHasKey('default', $flag);
|
|
}
|
|
}
|
|
}
|