Persona includes PHPUnit and Orchestra Testbench support.
composer testcomposer analysecomposer formatCheck formatting without changing files:
vendor/bin/pint --testcomposer qualityGood Persona tests should cover:
- Trait relationships
- Profile creation
- Profile updates
- Public/private visibility
- Published/unpublished visibility
- URL generation
- Avatar URL generation
- Banner URL generation
- View tracking
- Username token calculation
- Username changes
- Username uniqueness
- Comment creation
- Reply creation
- Max comment depth
- Guest comment restrictions
- Configurable models
- Configurable table names
- Route rendering
- View publishing