mirror of
https://github.com/coollabsio/coolify.git
synced 2026-10-29 10:04:36 +08: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.
18 lines
737 B
PHP
18 lines
737 B
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
it('does not register the archived v5 interface', function () {
|
|
expect(Route::has('v5.dashboard'))->toBeFalse()
|
|
->and(collect(Route::getRoutes())->contains(fn ($route) => str_starts_with($route->uri(), 'v5')))->toBeFalse();
|
|
});
|
|
|
|
it('keeps v5 prototypes outside executable application paths', function () {
|
|
expect(is_dir(app_path('Support/V5')))->toBeFalse()
|
|
->and(is_dir(resource_path('js/v5')))->toBeFalse()
|
|
->and(is_dir(resource_path('css/v5')))->toBeFalse()
|
|
->and(is_dir(resource_path('views/v5')))->toBeFalse()
|
|
->and(file_exists(base_path('routes/v5.php')))->toBeFalse()
|
|
->and(file_exists(config_path('v5.php')))->toBeFalse();
|
|
});
|