coolify/tests/Unit/ApplicationDeploymentTypeTest.php

12 lines
275 B
PHP
Raw Normal View History

2026-02-23 13:15:13 +00:00
<?php
use App\Models\Application;
it('treats zero private key id as deploy key', function () {
$application = new Application();
$application->private_key_id = 0;
$application->source = null;
expect($application->deploymentType())->toBe('deploy_key');
});