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
5782297dca
commit
2cde7284a1
186 changed files with 889 additions and 1075 deletions
|
|
@ -4,7 +4,7 @@ use App\Enums\Portal;
|
|||
use App\Models\Company;
|
||||
use App\Models\User;
|
||||
use Database\Seeders\RolesAndPermissionsSeeder;
|
||||
use Livewire\Volt\Volt as LivewireVolt;
|
||||
use Livewire\Livewire;
|
||||
use Tests\TestCase;
|
||||
|
||||
beforeEach(function (): void {
|
||||
|
|
@ -41,7 +41,7 @@ test('save erstellt eine Firma und ordnet sie dem User als Owner zu', function (
|
|||
/** @var TestCase $this */
|
||||
$customer = makeCustomerForCreate();
|
||||
|
||||
LivewireVolt::actingAs($customer)
|
||||
Livewire::actingAs($customer)
|
||||
->test('customer.press-kits.create')
|
||||
->set('name', 'Neue Brauerei AG')
|
||||
->set('portal', 'presseecho')
|
||||
|
|
@ -70,7 +70,7 @@ test('save validiert Pflichtfelder Name und Portal', function () {
|
|||
/** @var TestCase $this */
|
||||
$customer = makeCustomerForCreate();
|
||||
|
||||
LivewireVolt::actingAs($customer)
|
||||
Livewire::actingAs($customer)
|
||||
->test('customer.press-kits.create')
|
||||
->set('name', '')
|
||||
->set('portal', '')
|
||||
|
|
@ -82,7 +82,7 @@ test('save lehnt unbekannte Portal-Werte ab', function () {
|
|||
/** @var TestCase $this */
|
||||
$customer = makeCustomerForCreate();
|
||||
|
||||
LivewireVolt::actingAs($customer)
|
||||
Livewire::actingAs($customer)
|
||||
->test('customer.press-kits.create')
|
||||
->set('name', 'Test GmbH')
|
||||
->set('portal', 'invalid')
|
||||
|
|
@ -94,7 +94,7 @@ test('save lehnt Portal Both ab', function () {
|
|||
/** @var TestCase $this */
|
||||
$customer = makeCustomerForCreate();
|
||||
|
||||
LivewireVolt::actingAs($customer)
|
||||
Livewire::actingAs($customer)
|
||||
->test('customer.press-kits.create')
|
||||
->set('name', 'Beide Portale GmbH')
|
||||
->set('portal', Portal::Both->value)
|
||||
|
|
@ -109,7 +109,7 @@ test('Portal-Auswahl bietet Beide Portale nicht an', function () {
|
|||
/** @var TestCase $this */
|
||||
$customer = makeCustomerForCreate();
|
||||
|
||||
LivewireVolt::actingAs($customer)
|
||||
Livewire::actingAs($customer)
|
||||
->test('customer.press-kits.create')
|
||||
->assertSeeText(Portal::Presseecho->label())
|
||||
->assertSeeText(Portal::Businessportal24->label())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue