- Extract proxy timeout configuration logic into dedicated method - Add min:1 validation rule for publicPortTimeout - Normalize invalid timeout values (null, 0, negative) to default 3600s - Add tests for timeout configuration normalization and validation
11 lines
300 B
PHP
11 lines
300 B
PHP
<?php
|
|
|
|
use App\Livewire\Project\Service\Index;
|
|
|
|
test('service database proxy timeout requires a minimum of one second', function () {
|
|
$component = new Index;
|
|
$rules = (fn (): array => $this->rules)->call($component);
|
|
|
|
expect($rules['publicPortTimeout'])
|
|
->toContain('min:1');
|
|
});
|