mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-06 15:39:59 +00:00
Remove tests that copy app logic into the test, grep PHP source as text, only check literals, constants, class_exists or PHP built-ins, duplicate other tests, or are always skipped. Keep source checks that guard security and authorization rules. Rename a duplicate Pest helper so the full suite loads, drop the missing v5/Browser path, and remove the CLAUDE.md symlink in favor of AGENTS.md. Correct AGENTS.md: Dusk is not installed and the upgrade script is scripts/upgrade.sh.
23 lines
536 B
PHP
23 lines
536 B
PHP
<?php
|
|
|
|
use App\Livewire\Project\Shared\EnvironmentVariable\Add;
|
|
use Illuminate\Support\Facades\Auth;
|
|
|
|
it('returns empty arrays when currentTeam returns null', function () {
|
|
// Mock Auth facade to return null for user
|
|
Auth::shouldReceive('user')
|
|
->andReturn(null);
|
|
|
|
$component = new Add;
|
|
$component->parameters = [];
|
|
|
|
$result = $component->availableSharedVariables();
|
|
|
|
expect($result)->toBe([
|
|
'team' => [],
|
|
'project' => [],
|
|
'environment' => [],
|
|
'server' => [],
|
|
]);
|
|
});
|