livewire: Volt entfernt — Komponenten als Livewire-4-Single-File-Components, Route::livewire(), Livewire::test(); livewire/volt deinstalliert
- 83 Komponenten: Livewire\Volt\Component → Livewire\Component
- 73 Routen (admin, auth, customer): Volt::route() → Route::livewire()
- 88 Testdateien: Volt::test/actingAs → Livewire::test/actingAs
- VoltServiceProvider gelöscht; composer remove livewire/volt
- config/livewire.php auf v4-Schlüssel (component_layout, component_placeholder,
component_locations, make_command: SFC ohne ⚡). Der alte Schlüssel layout war
wirkungslos; alle gerouteten Komponenten setzen ihr Layout selbst.
- CLAUDE.md, AGENTS.md, boost.json, .cursorrules, Skill volt-development
- Roadmap: erledigt; Larastan erfasst SFCs weiterhin nicht (Blade-Dateien)
Suite 2.325 grün, einer übersprungen; Larastan und Pint ohne Meldung;
route:cache und view:cache laufen.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
79bb6cf1d0
commit
31da9ea8b6
186 changed files with 889 additions and 1075 deletions
|
|
@ -5,7 +5,7 @@ use App\Models\Company;
|
|||
use App\Models\PressRelease;
|
||||
use App\Models\User;
|
||||
use Database\Seeders\RolesAndPermissionsSeeder;
|
||||
use Livewire\Volt\Volt as LivewireVolt;
|
||||
use Livewire\Livewire;
|
||||
use Tests\TestCase;
|
||||
|
||||
/**
|
||||
|
|
@ -34,7 +34,7 @@ test('create page shows a persistent error summary with German field names when
|
|||
/** @var TestCase $this */
|
||||
$this->actingAs(makeValidationFeedbackCustomer());
|
||||
|
||||
LivewireVolt::test('customer.press-releases.create')
|
||||
Livewire::test('customer.press-releases.create')
|
||||
->set('title', 'Ein gültiger Titel für die PM')
|
||||
->set('text', str_repeat('Aussagekräftiger Fließtext. ', 5))
|
||||
->set('categoryId', null)
|
||||
|
|
@ -50,7 +50,7 @@ test('create page error summary lists every failing field and disappears once re
|
|||
$this->actingAs(makeValidationFeedbackCustomer());
|
||||
$category = Category::factory()->create();
|
||||
|
||||
$component = LivewireVolt::test('customer.press-releases.create')
|
||||
$component = Livewire::test('customer.press-releases.create')
|
||||
->call('save', 'draft')
|
||||
->assertHasErrors(['categoryId', 'title', 'text'])
|
||||
->assertSee('Speichern nicht möglich')
|
||||
|
|
@ -71,7 +71,7 @@ test('create page marks the category panel as invalid and keeps the jump anchor'
|
|||
/** @var TestCase $this */
|
||||
$this->actingAs(makeValidationFeedbackCustomer());
|
||||
|
||||
LivewireVolt::test('customer.press-releases.create')
|
||||
Livewire::test('customer.press-releases.create')
|
||||
->assertSeeHtml('data-error-anchor="categoryId"')
|
||||
->assertDontSeeHtml('is-invalid')
|
||||
->call('save', 'draft')
|
||||
|
|
@ -94,7 +94,7 @@ test('edit page shows the error summary when saving without a category', functio
|
|||
|
||||
$this->actingAs($customer);
|
||||
|
||||
LivewireVolt::test('customer.press-releases.edit', ['id' => $pr->id])
|
||||
Livewire::test('customer.press-releases.edit', ['id' => $pr->id])
|
||||
->set('categoryId', null)
|
||||
->call('save')
|
||||
->assertHasErrors(['categoryId'])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue