mirror of
https://github.com/coollabsio/coolify.git
synced 2026-10-29 10:04:36 +08:00
- Delete Blade components, component classes, Livewire components and views that nothing uses after the redesign. - Delete tests that only compare Blade/CSS source text; keep the source checks for authorization gates, stable wire:key values and escaping. - Update stale tests to the current UI and behaviour. - Update DESIGN.md to the current navigation and layout. - Add a lesson: test behaviour, not source markup. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
13 lines
496 B
PHP
13 lines
496 B
PHP
<?php
|
|
|
|
it('gates standalone database storage actions behind the update permission', function () {
|
|
$component = file_get_contents(app_path('Livewire/Project/Shared/Storages/All.php'));
|
|
$view = file_get_contents(resource_path('views/livewire/project/shared/storages/all.blade.php'));
|
|
|
|
expect($component)
|
|
->toContain('$this->showActionsColumn = $this->canUpdate;')
|
|
->and($view)
|
|
->toContain('@if ($showActionsColumn)')
|
|
->toContain('canGate="update"');
|
|
});
|