# LeadPilot — Automated Testing & Quality Assurance

**Document Version:** 1.0.0 (Phase 6 Foundation Lock)  
**Status:** Approved  

---

## 1. Running Automated Tests

```bash
# Execute entire test suite
php artisan test

# Execute specific test files
php artisan test tests/Feature/TenantIsolationTest.php
php artisan test tests/Feature/ApiAuthenticationTest.php
php artisan test tests/Unit/HeuristicFallbackScorerTest.php
php artisan test tests/Unit/CurrencyAndTimezoneServiceTest.php
```

---

## 2. Test Suites Inventory

* `tests/Feature/TenantIsolationTest.php` — Enforces Eloquent global scope boundary isolation between tenants.
* `tests/Feature/ApiAuthenticationTest.php` — Enforces Bearer token SHA-256 hashing and API scope security.
* `tests/Unit/HeuristicFallbackScorerTest.php` — Tests deterministic keyword scoring and 0–100 score bounding.
* `tests/Unit/CurrencyAndTimezoneServiceTest.php` — Tests multi-currency formatting and UTC-to-workspace timezone translations.
