test: add PromptVersion model tests #45
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#45
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "test/prompt-version-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/PromptVersionTest.phpwith Pest-style tests coveringPromptVersionmodel0001_01_01_000004_create_prompt_tables.phpforpromptsandprompt_versionstables required by the test suiteTest coverage
prompt()belongs-to,creator()belongs-to User, null creatorrestore()method: restores system_prompt, user_template, and variables back to parent prompt; returns the Prompt instancePrompt::versions(),createVersion()snapshots state and auto-increments version number, records creator, scoping per prompt, cascade deleteCloses #15
🤖 Generated with Claude Code