upskill-event-manager/tests/unit
ben 80f11e71dd fix: resolve dashboard fatal errors and event edit security check failures
Fixes three critical production issues discovered on upskillhvac.com:

 Dashboard Fatal Errors (class-hvac-dashboard-data.php):
- Added class_exists('Tribe__Events__Main') checks before accessing TEC constants
- Prevents fatal errors when TEC plugin loads after our code
- Applied to get_total_events_count(), get_upcoming_events_count(), and get_past_events_count()
- Gracefully returns 0 when TEC is not available

 Event Edit Security Check Failure (page-edit-event-custom.php):
- Fixed nonce action mismatch: changed 'hvac_edit_event' to 'hvac_event_action'
- Aligns with HVAC_Event_Manager::NONCE_ACTION constant
- Resolves "Security check failed" error on event update forms

 Google Drive Folder Update:
- Updated embedded folder ID from 16uDRkFcaEqKUxfBek9VbfbAIeFV77nZG to 1-SDHGR9Ix6BmUVTHa3wI99K0rwfWL-vs
- Applied to templates/page-trainer-resources.php (trainer resources page)
- Applied to includes/class-hvac-announcements-display.php (shortcode default)
- Updated tests/unit/test-announcements-display.php (test references)

All changes tested and verified on production.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-29 16:37:59 -03:00
..
test-announcements-ajax-extended.php feat: add comprehensive test framework and test files 2025-08-29 23:23:26 -03:00
test-announcements-ajax.php feat: add comprehensive test framework and test files 2025-08-29 23:23:26 -03:00
test-announcements-cpt.php feat: add comprehensive test framework and test files 2025-08-29 23:23:26 -03:00
test-announcements-display.php fix: resolve dashboard fatal errors and event edit security check failures 2025-10-29 16:37:59 -03:00
test-announcements-email-extended.php feat: add comprehensive test framework and test files 2025-08-29 23:23:26 -03:00
test-announcements-email.php feat: add comprehensive test framework and test files 2025-08-29 23:23:26 -03:00
test-announcements-manager.php feat: add comprehensive test framework and test files 2025-08-29 23:23:26 -03:00
test-announcements-permissions.php feat: add comprehensive test framework and test files 2025-08-29 23:23:26 -03:00
test-trainer-status.php feat: Implement trainer approval workflow with status management 2025-07-28 12:38:34 -03:00