test: add tests for admin modal components (30+ modals) #7
Labels
No labels
P1
P2
P3
PHP
agent-ready
bug
clotho
discovery
docs
epic
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-admin#7
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Issue
30+ Livewire modal components have no test coverage despite containing complex business logic.
Missing Test Coverage
High Priority - Complex Business Logic
PlatformUser.php - User management:
saveTier())saveVerification())exportUserData())ServiceManager.php - Service CRUD:
WaitlistManager.php - Waitlist operations:
getFilteredQuery())Settings.php - User settings:
updateProfile())updatePassword())updatePreferences())requestAccountDeletion())Medium Priority - Admin Features
Analytics.php - Analytics dashboard
Console.php - Admin console
Databases.php - Database management
Deployments.php - Deployment history
Honeypot.php - Honeypot hit viewer
Platform.php - Platform admin
Profile.php - User profile editing
PromptManager.php - AI prompt management
Sites.php - Workspace/site listing
UsageDashboard.php - Usage metrics
WorkspaceSwitcher.php - Workspace switching
WpConnectorSettings.php - WordPress connector config
Entitlement modals (3):
Entitlement/Dashboard.phpEntitlement/FeatureManager.phpEntitlement/PackageManager.phpLower Priority
AIServices.php - AI service configuration
BoostPurchase.php - Boost purchase flow (stub)
Content.php* (3 modals) - Content management
ActivityLog.php - Activity viewing
ServicesAdmin.php - Services admin dashboard
Test Requirements
Each modal should have tests for:
Example Test Structure
Convention
From CLAUDE.md:
Priority
High - Critical admin functionality lacks test coverage.
Discovered by
Automatic codebase scan (issue #3)