Files
api/services/nginx/app/tests/Unit/Goals/GoalsLegacyRendererScriptsTest.php
T

20 lines
646 B
PHP

<?php
it('keeps legacy monthly renderer script green', function (): void {
$result = run_legacy_script('tests/goals/MonthlyTargetRendererTest.php');
if ((int)$result['exitCode'] !== 0) {
throw new RuntimeException((string)$result['output']);
}
expect((int)$result['exitCode'])->toBe(0);
});
it('keeps legacy department daily renderer script green', function (): void {
$result = run_legacy_script('tests/goals/DepartmentDailyTargetsRendererTest.php');
if ((int)$result['exitCode'] !== 0) {
throw new RuntimeException((string)$result['output']);
}
expect((int)$result['exitCode'])->toBe(0);
});