test: add Livewire component tests for 12 admin components #42
No reviewers
Labels
No labels
P1
P2
P3
PHP
agent-ready
bug
clotho
discovery
docs
refactor
review
security
testing
athena
athena-gemini
audit
clotho
clotho-gemini
codex
darbs-claude
security
wiki
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: core/php-agentic#42
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "test/livewire-component-tests"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
tests/Feature/Livewire/with 12 test files (one per component)tests/Fixtures/HadesUser.phpfake user with Hades access for auth teststests/views/stub Blade views (agentic + mcp namespaces) for clean test renderingLivewireTestCasebase class that registers stub view namespaces and providesactingAsHades()helperComponents Covered
Test Coverage
Each test file covers:
checkHadesAccess()assertHttpExceptionfor unauthenticated usersassertOk()with authenticated Hades userassertSet()on default and updated propertiescall()for actions (activate, pause, archive, etc.) withassertDispatched('notify')assertHasErrors()for required fields and rule violationsDependencies
Added to
require-dev:livewire/livewire: ^3.0— explicit dev dependency (already transitive via host-uk/core)pestphp/pest-plugin-livewire: ^3.0— Livewire testing helpersCloses #11