test: add tests for NamespaceService #30
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-tenant#30
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?
Problem
Services/NamespaceService.phphas no dedicated test file. The service handles namespace resolution, session management, and access control.Key areas lacking coverage
current()resolution priority (request attribute → session → user default)findByUuid()with cache hit and missdefaultForUser()priority chain (explicit default → first owned → workspace namespace)accessibleByUser()caching behaviourgroupedForUser()structure and N+1 fix verificationcanAccess()access controlAcceptance Criteria
tests/Feature/NamespaceServiceTest.phpusing PestDiscovered during automated scan (issue #3)
Charon referenced this issue2026-02-20 23:57:34 +00:00