Tribe__Events__Main::POSTTYPE, 'posts_per_page' => -1 ), $args)); } } if (!function_exists('tribe_get_start_date')) { function tribe_get_start_date($event_id = null, $display_time = true, $date_format = '') { return get_post_meta($event_id, '_EventStartDate', true); } } if (!function_exists('tribe_get_end_date')) { function tribe_get_end_date($event_id = null, $display_time = true, $date_format = '') { return get_post_meta($event_id, '_EventEndDate', true); } } if (!function_exists('tribe_get_venue')) { function tribe_get_venue($post_id = null) { return get_post_meta($post_id, '_EventVenue', true); } } if (!function_exists('tribe_get_organizer')) { function tribe_get_organizer($post_id = null) { return get_post_meta($post_id, '_EventOrganizer', true); } } // Mock WordPress functions if needed for testing if (!function_exists('wp_verify_nonce')) { function wp_verify_nonce($nonce, $action = -1) { return true; // Always verify in test environment } } if (!function_exists('wp_create_nonce')) { function wp_create_nonce($action = -1) { return 'test_nonce'; } } // Add test helper functions function create_test_event($args = array()) { $default_args = array( 'post_type' => Tribe__Events__Main::POSTTYPE, 'post_title' => 'Test Event', 'post_status' => 'publish' ); return wp_insert_post(array_merge($default_args, $args)); } // Log that test doubles are loaded error_log('[HVAC TEST] Test doubles loaded successfully');