PHPUnit 12.5.45 by Sebastian Bergmann and contributors.

Runtime:       PHP 8.4.27
Configuration: <build-workspace>/poly-chat/phpunit.xml

.........................................                         41 / 41 (100%)

Time: 00:04.254, Memory: 69.00 MB

Example (Tests\Feature\Example)
 ✔ The application returns a successful response

Example (Tests\Unit\Example)
 ✔ That true is true

Http Session (Tests\Feature\HttpSession)
 ✔ Browser login is scoped to company and uses framework session
 ✔ Csrf rejects cookie authenticated writes without a token
 ✔ Tenant routes are not exposed on platform host

Operations (Tests\Feature\Operations)
 ✔ Forwarding file retries do not duplicate storage or messages
 ✔ Mentions only include members and disappear after clear
 ✔ Channel views are unique and readers cannot publish
 ✔ Scheduled publish runs once and clears tenant context
 ✔ Password reset queues encrypted tenant job without sending inline
 ✔ Queued mail loads only user in job company and cleans context
 ✔ Content grant requires super admin and expires
 ✔ Platform admin can read cross company content with audit
 ✔ Etag is not a bypass after membership revocation
 ✔ Database rejects cross room reply even if application is bypassed
 ✔ Jalali schedule is stored as utc
 ✔ Cleanup preserves attached file and releases unused quota

Phase One Chat (Tests\Feature\PhaseOneChat)
 ✔ Send is idempotent and deleted tombstone is not resurrected
 ✔ Reusing client key with different body is rejected
 ✔ Sync returns edits deletions and reactions not only new ids
 ✔ Clear history cannot be bypassed by reply or download
 ✔ External dm requires acceptance and block stops sending
 ✔ External attachment is visible to peer but not other employees
 ✔ Global timeline is visible but cannot be edited by another company
 ✔ Cursor pagination does not repeat or skip messages

Phase One Security (Tests\Feature\PhaseOneSecurity)
 ✔ Private messages files users and mutations are isolated
 ✔ Token cannot be reused on another company subdomain
 ✔ Non members and company admin have no implicit content access
 ✔ Guest cannot create groups or escalate permissions
 ✔ Unauthenticated requests cannot read content
 ✔ Unknown hosts are rejected and no public storage route exists
 ✔ Missing context fails closed in model queries
 ✔ Forged company and foreign member are not accepted
 ✔ File validation and quota leave no rows on failure
 ✔ Forced password change blocks chat until changed
 ✔ Suspended company and inactive user are blocked immediately
 ✔ Admin issued activation does not forge email verification
 ✔ Reset tokens are separated for same email in two companies
 ✔ User cannot access platform admin api
 ✔ Search does not return another room or company
 ✔ Html in company name is escaped in blade

OK (41 tests, 152 assertions)
