mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-04 10:42:23 +00:00
Add a settings-subsection component and merge small cards on the advanced settings, application advanced, healthcheck, Docker cleanup, and GitLab/Gitea source pages. Update outdated tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
37 lines
1.2 KiB
PHP
37 lines
1.2 KiB
PHP
<?php
|
|
|
|
it('uses Livewire navigation after deleting or converting page resources', function (string $path, array $redirects) {
|
|
$contents = file_get_contents(dirname(__DIR__, 2).'/'.$path);
|
|
|
|
foreach ($redirects as $redirect) {
|
|
expect($contents)->toContain($redirect);
|
|
}
|
|
})->with([
|
|
'S3 storage' => [
|
|
'app/Livewire/Storage/Show.php',
|
|
["redirectRoute(\$this, 'storage.index')"],
|
|
],
|
|
'database backup schedule' => [
|
|
'app/Livewire/Project/Database/BackupEdit.php',
|
|
[
|
|
"redirectRoute(\$this, 'project.service.database.backups'",
|
|
"redirectRoute(\$this, 'project.database.backup.index'",
|
|
],
|
|
],
|
|
'GitHub source' => [
|
|
'app/Livewire/Source/Github/Change.php',
|
|
["redirectRoute(\$this, 'source.all')"],
|
|
],
|
|
'GitLab source' => [
|
|
'app/Livewire/Source/Gitlab/Change.php',
|
|
["redirectRoute(\$this, 'source.all')"],
|
|
],
|
|
'service resources' => [
|
|
'app/Livewire/Project/Service/Index.php',
|
|
[
|
|
"return redirectRoute(\$this, 'project.service.configuration', \$this->parameters);",
|
|
"return redirectRoute(\$this, 'project.service.configuration', \$redirectParams);",
|
|
],
|
|
],
|
|
]);
|