=== Phase 10: Admin Inbox Messaging Tests === --- Setup --- User 1: AbbyG (ID: 36) User 2: abbygrace (ID: 24) User 1 starting balance: Gold=210, Wrenches=1345 --- Test: User search --- PASS: User search - returns results PASS: User search - contains expected user --- Test: Send individual message --- PASS: Send individual - message created PASS: Individual msg - correct subject PASS: Individual msg - correct sender PASS: Individual msg - appears in user1 inbox PASS: Individual msg - NOT in user2 inbox --- Test: Send broadcast --- PASS: Send broadcast - message created PASS: Broadcast - user1 sees it PASS: Broadcast - user2 sees it --- Test: Gold reward --- PASS: Gold reward - message has reward PASS: Gold reward - type is gold PASS: Gold reward - amount is 200 PASS: Gold claim - success PASS: Gold claim - balance updated --- Test: Wrenches reward --- PASS: Wrenches claim - success PASS: Wrenches claim - balance updated --- Test: Toolbox reward --- PASS: Toolbox claim - success FAIL: Toolbox claim - toolbox created (Before: 4, After: 4) --- Test: Multiple rewards --- PASS: Multiple rewards - 2 rewards attached PASS: Multiple rewards - claim reward 1 success PASS: Multiple rewards - claim reward 2 success --- Test: Message history --- PASS: History - returns messages PASS: History - contains individual msg --- Test: History filter --- PASS: History filter - individual msgs exist PASS: History filter - broadcast msgs exist --- Test: Message detail --- PASS: Message detail - found PASS: Message detail - has body PASS: Message detail - correct subject PASS: Message detail - has reward --- Test: Validation --- PASS: Validation - empty subject caught PASS: Validation - subject > 128 chars caught PASS: Validation - subject = 128 chars ok --- Cleanup --- Test data cleaned up. ============================= Results: 32 PASSED, 1 FAILED =============================