Some checks failed
Main Confidence / confidence (push) Failing after 54s
This pull request promotes the current state of `platform-dev` to the main integration branch `dev`. It includes recent features, fixes, and architectural refinements validated on the platform development track. Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de> Reviewed-on: #297
22 lines
708 B
PHP
22 lines
708 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use App\Models\Finding;
|
|
|
|
it('exposes only canonical open statuses for findings', function (): void {
|
|
expect(Finding::openStatuses())->toBe([
|
|
Finding::STATUS_NEW,
|
|
Finding::STATUS_TRIAGED,
|
|
Finding::STATUS_IN_PROGRESS,
|
|
Finding::STATUS_REOPENED,
|
|
]);
|
|
|
|
expect(Finding::openStatusesForQuery())->toBe(Finding::openStatuses());
|
|
});
|
|
|
|
it('does not treat acknowledged as a canonical open or terminal status', function (): void {
|
|
expect(Finding::canonicalizeStatus('acknowledged'))->toBe('acknowledged');
|
|
expect(Finding::isOpenStatus('acknowledged'))->toBeFalse();
|
|
expect(Finding::isTerminalStatus('acknowledged'))->toBeFalse();
|
|
}); |