Skip to content

Latest commit

 

History

History
58 lines (44 loc) · 865 Bytes

File metadata and controls

58 lines (44 loc) · 865 Bytes

✅ Testing

Persona includes PHPUnit and Orchestra Testbench support.

🧪 Run Tests

composer test

🔎 Run Static Analysis

composer analyse

🎨 Run Pint

composer format

Check formatting without changing files:

vendor/bin/pint --test

🧰 Run Everything

composer quality

📋 Recommended Coverage

Good 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